forked from qt-creator/qt-creator
ProjectExplorer: Use simpler signature for ApplicationLauncher::processExited()
And rename it to finished(). Maps better to what QtcProcess uses. Change-Id: Ibfa018549f436b27638a791c0b4937c4459c9452 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -117,7 +117,7 @@ void CallgrindController::run(Option option)
|
||||
#if CALLGRIND_CONTROL_DEBUG
|
||||
m_controllerProcess->setProcessChannelMode(QProcess::ForwardedChannels);
|
||||
#endif
|
||||
connect(m_controllerProcess, &ApplicationLauncher::processExited,
|
||||
connect(m_controllerProcess, &ApplicationLauncher::finished,
|
||||
this, &CallgrindController::controllerProcessFinished);
|
||||
connect(m_controllerProcess, &ApplicationLauncher::error,
|
||||
this, &CallgrindController::handleControllerProcessError);
|
||||
@@ -149,7 +149,7 @@ void CallgrindController::handleControllerProcessError(QProcess::ProcessError)
|
||||
m_controllerProcess = nullptr;
|
||||
}
|
||||
|
||||
void CallgrindController::controllerProcessFinished(int rc, QProcess::ExitStatus status)
|
||||
void CallgrindController::controllerProcessFinished()
|
||||
{
|
||||
QTC_ASSERT(m_controllerProcess, return);
|
||||
const QString error = m_controllerProcess->errorString();
|
||||
@@ -157,7 +157,7 @@ void CallgrindController::controllerProcessFinished(int rc, QProcess::ExitStatus
|
||||
m_controllerProcess->deleteLater(); // Called directly from finished() signal in m_process
|
||||
m_controllerProcess = nullptr;
|
||||
|
||||
if (rc != 0 || status != QProcess::NormalExit) {
|
||||
if (m_controllerProcess->exitCode() != 0 || m_controllerProcess->exitStatus() != QProcess::NormalExit) {
|
||||
qWarning() << "Controller exited abnormally:" << error;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user