forked from qt-creator/qt-creator
ProjectExplorer: Rename RunControl::finished to stopped
That's what it is. Change-Id: I8cf9af23bb7cafe1cde8f165fdbf85cdeb79f7e4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -374,13 +374,13 @@ void TestRunner::debugTests()
|
||||
processOutput(outputreader, msg, format);
|
||||
});
|
||||
|
||||
connect(runControl, &ProjectExplorer::RunControl::finished,
|
||||
connect(runControl, &ProjectExplorer::RunControl::stopped,
|
||||
outputreader, &QObject::deleteLater);
|
||||
}
|
||||
|
||||
connect(this, &TestRunner::requestStopTestRun, runControl,
|
||||
&ProjectExplorer::RunControl::initiateStop);
|
||||
connect(runControl, &ProjectExplorer::RunControl::finished, this, &TestRunner::onFinished);
|
||||
connect(runControl, &ProjectExplorer::RunControl::stopped, this, &TestRunner::onFinished);
|
||||
ProjectExplorer::ProjectExplorerPlugin::startRunControl(runControl);
|
||||
}
|
||||
|
||||
|
||||
@@ -2081,7 +2081,7 @@ void DebuggerPluginPrivate::attachToUnstartedApplicationDialog()
|
||||
return;
|
||||
|
||||
if (dlg->hideOnAttach())
|
||||
connect(rc, &RunControl::finished, dlg, &UnstartedAppWatcherDialog::startWatching);
|
||||
connect(rc, &RunControl::stopped, dlg, &UnstartedAppWatcherDialog::startWatching);
|
||||
});
|
||||
|
||||
dlg->show();
|
||||
|
||||
@@ -406,7 +406,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
|
||||
this, &AppOutputPane::slotRunControlChanged);
|
||||
connect(rc, &RunControl::started,
|
||||
this, &AppOutputPane::slotRunControlChanged);
|
||||
connect(rc, &RunControl::finished,
|
||||
connect(rc, &RunControl::stopped,
|
||||
this, &AppOutputPane::slotRunControlFinished);
|
||||
connect(rc, &RunControl::applicationProcessHandleChanged,
|
||||
this, &AppOutputPane::enableDefaultButtons);
|
||||
|
||||
@@ -1216,7 +1216,7 @@ void RunControlPrivate::setState(RunControlState newState)
|
||||
foreach (auto worker, m_workers)
|
||||
if (worker)
|
||||
worker->onFinished();
|
||||
emit q->finished();
|
||||
emit q->stopped();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -478,7 +478,7 @@ signals:
|
||||
const QString &msg, Utils::OutputFormat format);
|
||||
void aboutToStart();
|
||||
void started();
|
||||
void finished();
|
||||
void stopped();
|
||||
void applicationProcessHandleChanged(QPrivateSignal); // Use setApplicationProcessHandle
|
||||
|
||||
private:
|
||||
|
||||
@@ -55,7 +55,7 @@ WaitForStopDialog::WaitForStopDialog(QList<ProjectExplorer::RunControl *> runCon
|
||||
updateProgressText();
|
||||
|
||||
foreach (RunControl *rc, runControls)
|
||||
connect(rc, &RunControl::finished, this, &WaitForStopDialog::runControlFinished);
|
||||
connect(rc, &RunControl::stopped, this, &WaitForStopDialog::runControlFinished);
|
||||
|
||||
m_timer.start();
|
||||
}
|
||||
|
||||
@@ -339,7 +339,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker)
|
||||
}
|
||||
}
|
||||
|
||||
connect(runControl, &RunControl::finished, this, [this, runControl] {
|
||||
connect(runControl, &RunControl::stopped, this, [this, runControl] {
|
||||
d->m_toolBusy = false;
|
||||
updateRunActions();
|
||||
disconnect(d->m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
|
||||
@@ -741,7 +741,7 @@ ValgrindToolRunner *CallgrindTool::createRunTool(RunControl *runControl)
|
||||
auto toolRunner = new CallgrindToolRunner(runControl);
|
||||
|
||||
connect(toolRunner, &CallgrindToolRunner::parserDataReady, this, &CallgrindTool::takeParserDataFromRunControl);
|
||||
connect(runControl, &RunControl::finished, this, &CallgrindTool::engineFinished);
|
||||
connect(runControl, &RunControl::stopped, this, &CallgrindTool::engineFinished);
|
||||
|
||||
connect(this, &CallgrindTool::dumpRequested, toolRunner, &CallgrindToolRunner::dump);
|
||||
connect(this, &CallgrindTool::resetRequested, toolRunner, &CallgrindToolRunner::reset);
|
||||
|
||||
@@ -174,7 +174,7 @@ void MemcheckToolRunner::startDebugger(qint64 valgrindPid)
|
||||
auto gdbWorker = new Debugger::DebuggerRunTool(runControl());
|
||||
gdbWorker->setStartParameters(sp);
|
||||
gdbWorker->initiateStart();
|
||||
connect(runControl(), &RunControl::finished, gdbWorker, &RunControl::deleteLater);
|
||||
connect(runControl(), &RunControl::stopped, gdbWorker, &RunControl::deleteLater);
|
||||
}
|
||||
|
||||
void MemcheckToolRunner::appendLog(const QByteArray &data)
|
||||
|
||||
Reference in New Issue
Block a user