Changeset View
Changeset View
Standalone View
Standalone View
krArc/krlinecountingprocess.cpp
Show All 18 Lines | |||||
19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
20 | *****************************************************************************/ | 20 | *****************************************************************************/ | ||
21 | 21 | | |||
22 | #include "krlinecountingprocess.h" | 22 | #include "krlinecountingprocess.h" | ||
23 | 23 | | |||
24 | KrLinecountingProcess::KrLinecountingProcess() : KProcess() | 24 | KrLinecountingProcess::KrLinecountingProcess() : KProcess() | ||
25 | { | 25 | { | ||
26 | setOutputChannelMode(KProcess::SeparateChannels); // without this output redirection has no effect! | 26 | setOutputChannelMode(KProcess::SeparateChannels); // without this output redirection has no effect! | ||
27 | connect(this, SIGNAL(readyReadStandardError()), SLOT(receivedError())); | 27 | connect(this, &KrLinecountingProcess::readyReadStandardError, this, &KrLinecountingProcess::receivedError); | ||
28 | connect(this, SIGNAL(readyReadStandardOutput()), SLOT(receivedOutput())); | 28 | connect(this, &KrLinecountingProcess::readyReadStandardOutput, [=]() { receivedOutput(); }); | ||
29 | mergedOutput = true; | 29 | mergedOutput = true; | ||
30 | } | 30 | } | ||
31 | 31 | | |||
32 | void KrLinecountingProcess::setMerge(bool value) | 32 | void KrLinecountingProcess::setMerge(bool value) | ||
33 | { | 33 | { | ||
34 | mergedOutput = value; | 34 | mergedOutput = value; | ||
35 | } | 35 | } | ||
36 | 36 | | |||
Show All 30 Lines |