forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user