diff options
author | hjk <hjk@qt.io> | 2022-05-10 15:33:33 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-05-10 15:20:06 +0000 |
commit | 1ffaf0139af4946b1965de6ea341db4f4577c224 (patch) | |
tree | 60366c8269a3069f72a5644759073a34b5c4ed74 /src/plugins/perfprofiler/perftracepointdialog.cpp | |
parent | 42e072f15968e354c981c7da499c230634189bf5 (diff) | |
download | qt-creator-1ffaf0139af4946b1965de6ea341db4f4577c224.tar.gz |
ProjectExplorer: Introduce a IDevice::filePath
Same function as mapToGlobalPath, but operating on a QString specifying
the local path part. It's the majority use case and arguably the 'right
thing' to use instead of a full FilePath that can refer to arbitrary
devices.
Change-Id: Ifc8bd340e2e8859fe549f5724eb94269f587c418
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler/perftracepointdialog.cpp')
-rw-r--r-- | src/plugins/perfprofiler/perftracepointdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/perfprofiler/perftracepointdialog.cpp b/src/plugins/perfprofiler/perftracepointdialog.cpp index 9ee65b601e..e0db48cc4c 100644 --- a/src/plugins/perfprofiler/perftracepointdialog.cpp +++ b/src/plugins/perfprofiler/perftracepointdialog.cpp @@ -95,9 +95,9 @@ void PerfTracePointDialog::runScript() const QString elevate = m_ui->privilegesChooser->currentText(); if (elevate != QLatin1String("n.a.")) - m_process->setCommand({m_device->mapToGlobalPath(FilePath::fromString(elevate)), {"sh"}}); + m_process->setCommand({m_device->filePath(elevate), {"sh"}}); else - m_process->setCommand({m_device->mapToGlobalPath("sh"), {}}); + m_process->setCommand({m_device->filePath("sh"), {}}); connect(m_process.get(), &QtcProcess::done, this, &PerfTracePointDialog::handleProcessDone); m_process->start(); |