summaryrefslogtreecommitdiff
path: root/src/plugins/perfprofiler/perftracepointdialog.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-02-11 17:38:16 +0100
committerhjk <hjk@qt.io>2022-02-14 15:10:12 +0000
commit95c9579c58d8cd9dfacbeee70f84920ab9cf87e7 (patch)
treeecb272ad7451830ca0e8046aaa7cb8ec80018d48 /src/plugins/perfprofiler/perftracepointdialog.cpp
parent380d952221a1f87ed47b860a7eb5ed5f51cbf70e (diff)
downloadqt-creator-95c9579c58d8cd9dfacbeee70f84920ab9cf87e7.tar.gz
ProjectExplorer: Normalize DeviceProcess::start() signature
Change-Id: I2915be34d4a1eed64567874dcf0263b7583cc142 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler/perftracepointdialog.cpp')
-rw-r--r--src/plugins/perfprofiler/perftracepointdialog.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/perfprofiler/perftracepointdialog.cpp b/src/plugins/perfprofiler/perftracepointdialog.cpp
index 3bb2197ea5..6b3d46cf7e 100644
--- a/src/plugins/perfprofiler/perftracepointdialog.cpp
+++ b/src/plugins/perfprofiler/perftracepointdialog.cpp
@@ -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()