summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2014-10-09 06:24:39 (GMT)
committerMontel Laurent <montel@kde.org>2014-10-09 06:24:39 (GMT)
commit0a8b1ca098aba7155aa93608d4469be29e712431 (patch)
tree4b555a08fe73295945aed6f2892bfb4a6e4bcce9
parent657c07ed2028cbd073b933b80675d41d7aa5ef01 (diff)
Port to new connect api
-rw-r--r--generators/comicbook/unrar.cpp2
-rw-r--r--generators/dvi/dviexport.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/generators/comicbook/unrar.cpp b/generators/comicbook/unrar.cpp
index 1e9b9e9..f61a4ce 100644
--- a/generators/comicbook/unrar.cpp
+++ b/generators/comicbook/unrar.cpp
@@ -225,7 +225,7 @@ int Unrar::startSyncProcess( const QStringList &args )
connect(mProcess, &KPtyProcess::readyReadStandardOutput, this, &Unrar::readFromStdout);
connect(mProcess, &KPtyProcess::readyReadStandardError, this, &Unrar::readFromStderr);
- connect( mProcess, SIGNAL(finished(int,QProcess::ExitStatus)), SLOT(finished(int,QProcess::ExitStatus)) );
+ connect(mProcess, static_cast<void (KPtyProcess::*)(int, QProcess::ExitStatus)>(&KPtyProcess::finished), this, &Unrar::finished);
#if defined(Q_OS_WIN)
diff --git a/generators/dvi/dviexport.cpp b/generators/dvi/dviexport.cpp
index f7404ac..8ac9198 100644
--- a/generators/dvi/dviexport.cpp
+++ b/generators/dvi/dviexport.cpp
@@ -66,7 +66,7 @@ void DVIExport::start(const QString& command,
process_->setOutputChannelMode(KProcess::MergedChannels);
process_->setNextOpenMode(QIODevice::Text);
connect(process_, &KProcess::readyReadStandardOutput, this, &DVIExport::output_receiver);
- connect(process_, SIGNAL(finished(int)), this, SLOT(finished(int)));
+ connect(process_, static_cast<void (KProcess::*)(int)>(&KProcess::finished), this, &DVIExport::finished);
*process_ << command << args;