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