Commit 78ca82e1 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port to undeprecated variant of QProcess::finished signal

parent f46dfbad
......@@ -49,7 +49,8 @@ CMakeCommandsContents::CMakeCommandsContents(QObject* parent)
process->setArguments(params);
KDevelop::ICore::self()->runtimeController()->currentRuntime()->startProcess(process);
connect(process, QOverload<int>::of(&QProcess::finished), this, &CMakeCommandsContents::processOutput);
connect(process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
this, &CMakeCommandsContents::processOutput);
}
}
......
......@@ -57,10 +57,10 @@ CMakeServer::CMakeServer(KDevelop::IProject* project)
this, [this, path](QProcess::ProcessError error) {
qCWarning(CMAKE) << "cmake server error:" << error << path << m_process.readAllStandardError() << m_process.readAllStandardOutput();
});
connect(&m_process, QOverload<int>::of(&QProcess::finished), this, [](int code){
connect(&m_process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, [](int code){
qCDebug(CMAKE) << "cmake server finished with code" << code;
});
connect(&m_process, QOverload<int>::of(&QProcess::finished), this, &CMakeServer::finished);
connect(&m_process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &CMakeServer::finished);
connect(m_localSocket, &QIODevice::readyRead, this, &CMakeServer::processOutput);
connect(m_localSocket, QOverload<QLocalSocket::LocalSocketError>::of(&QLocalSocket::error), this, [this, path](QLocalSocket::LocalSocketError socketError) {
......
......@@ -135,7 +135,7 @@ static QStringList availableArches(const KDevelop::Path& url)
const QString sdkName = doc[QLatin1String("sdk")].toString();
const QString runtimeVersion = doc[QLatin1String("runtime-version")].toString();
const QString match = sdkName + QLatin1String("/(.+)/") + runtimeVersion + QLatin1Char('$');
QObject::connect(&supportedArchesProcess, QOverload<int>::of(&QProcess::finished),
QObject::connect(&supportedArchesProcess, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
&supportedArchesProcess, [&supportedArchesProcess, &match, &ret]() {
QTextStream stream(&supportedArchesProcess);
QRegularExpression rx(match);
......
......@@ -51,7 +51,7 @@ void GitPluginCheckInRepositoryJob::start()
m_hashjob->setWorkingDirectory(m_rootDirectory);
m_hashjob->setStandardOutputProcess(m_findjob);
connect(m_findjob, QOverload<int>::of(&QProcess::finished), this, &GitPluginCheckInRepositoryJob::repositoryQueryFinished);
connect(m_findjob, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &GitPluginCheckInRepositoryJob::repositoryQueryFinished);
connect(m_hashjob, &QProcess::errorOccurred, this, &GitPluginCheckInRepositoryJob::processFailed);
connect(m_findjob, &QProcess::errorOccurred, this, &GitPluginCheckInRepositoryJob::processFailed);
......
......@@ -67,7 +67,7 @@ void QtHelpQtDoc::registerDocumentations()
p->setProgram(qmake);
p->setArguments({QLatin1String("-query"), QLatin1String("QT_INSTALL_DOCS")});
p->start();
connect(p, QOverload<int>::of(&QProcess::finished), this, &QtHelpQtDoc::lookupDone);
connect(p, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &QtHelpQtDoc::lookupDone);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment