Dissolve RunControl::setRunnable

Change-Id: I52aea3bea0c4ea90a448f5a77bfa01414bc56702
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-05-25 16:26:10 +02:00
parent 3ad82a66f9
commit bc3c4d7453
7 changed files with 66 additions and 40 deletions

View File

@@ -282,12 +282,13 @@ CallgrindToolPrivate::CallgrindToolPrivate()
if (dlg.exec() != QDialog::Accepted)
return;
m_perspective.select();
CommandLine command = dlg.commandLine();
auto runControl = new RunControl(CALLGRIND_RUN_MODE);
runControl->copyDataFromRunConfiguration(runConfig);
runControl->createMainWorker();
const auto runnable = dlg.runnable();
runControl->setRunnable(runnable);
runControl->setDisplayName(runnable.command.executable().toUserOutput());
runControl->setCommandLine(command);
runControl->setWorkingDirectory(dlg.workingDirectory());
runControl->setDisplayName(command.executable().toUserOutput());
ProjectExplorerPlugin::startRunControl(runControl);
});