ProjectExplorer: FilePathify IDevice::qmlRunCommand

And remove a few unnecessary namespace qualifications nearby.

Change-Id: Iea866c98f13fe02e1ce29b855632beeaeeb8cd4f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-08-11 06:40:36 +02:00
parent 54b372a082
commit 2f0219928d
3 changed files with 39 additions and 39 deletions

View File

@@ -197,9 +197,9 @@ FilePath QmlProjectRunConfiguration::qmlRuntimeFilePath() const
if (dev.isNull()) // No device set. We don't know where a QML utility is.
return {};
const QString qmlRuntime = dev->qmlRunCommand();
const FilePath qmlRuntime = dev->qmlRunCommand();
// If not given explicitly by device, try to pick it from $PATH.
return FilePath::fromString(qmlRuntime.isEmpty() ? QString("qmlscene") : qmlRuntime);
return qmlRuntime.isEmpty() ? "qmlscene" : qmlRuntime;
}
QString QmlProjectRunConfiguration::commandLineArguments() const