Changeset View
Changeset View
Standalone View
Standalone View
krusader/krslots.h
Show All 38 Lines | 38 | { | |||
---|---|---|---|---|---|
39 | Q_OBJECT | 39 | Q_OBJECT | ||
40 | 40 | | |||
41 | QString tmp1, tmp2; | 41 | QString tmp1, tmp2; | ||
42 | 42 | | |||
43 | public: | 43 | public: | ||
44 | KrProcess(QString in1, QString in2) { | 44 | KrProcess(QString in1, QString in2) { | ||
45 | tmp1 = in1; | 45 | tmp1 = in1; | ||
46 | tmp2 = in2; | 46 | tmp2 = in2; | ||
47 | connect(this, SIGNAL(finished(int, QProcess::ExitStatus)), SLOT(processHasExited())); | 47 | connect(this, QOverload<int, QProcess::ExitStatus>::of(&KrProcess::finished), this, &KrProcess::processHasExited); | ||
nmel: Please fix spacing as well (before QOverload). | |||||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | public slots: | 50 | public slots: | ||
51 | void processHasExited() { | 51 | void processHasExited() { | ||
52 | if (!tmp1.isEmpty()) | 52 | if (!tmp1.isEmpty()) | ||
53 | QFile::remove(tmp1); | 53 | QFile::remove(tmp1); | ||
54 | if (!tmp2.isEmpty()) | 54 | if (!tmp2.isEmpty()) | ||
55 | QFile::remove(tmp2); | 55 | QFile::remove(tmp2); | ||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Please fix spacing as well (before QOverload).