ProjectExplorer: Normalize DeviceProcess::start() signature

Change-Id: I2915be34d4a1eed64567874dcf0263b7583cc142
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-02-11 17:38:16 +01:00
parent 380d952221
commit 95c9579c58
24 changed files with 107 additions and 109 deletions

View File

@@ -100,12 +100,11 @@ void PerfTracePointDialog::runScript()
m_process.reset(m_device->createProcess(this));
Runnable runnable;
const QString elevate = m_ui->privilegesChooser->currentText();
if (elevate != QLatin1String("n.a."))
runnable.command = {FilePath::fromString(elevate), {"sh"}};
m_process->setCommand({FilePath::fromString(elevate), {"sh"}});
else
runnable.command = {"sh", {}};
m_process->setCommand({"sh", {}});
connect(m_process.get(), &DeviceProcess::started,
this, &PerfTracePointDialog::feedScriptToProcess);
@@ -116,7 +115,7 @@ void PerfTracePointDialog::runScript()
connect(m_process.get(), &DeviceProcess::errorOccurred,
this, &PerfTracePointDialog::handleProcessError);
m_process->start(runnable);
m_process->start();
}
void PerfTracePointDialog::feedScriptToProcess()