QtSupport: FilePathify BaseQtVersion::qmlsceneCommand()

Change-Id: Ia0bc3fcb40bbda31cd114503ab599b65d7597e70
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-06-29 19:01:36 +02:00
parent c6dc02313d
commit b52f2d198a
3 changed files with 8 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ FilePath QmlProjectRunConfiguration::qmlScenePath() const
if (deviceType == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
// If not given explicitly by Qt Version, try to pick it from $PATH.
const bool isDesktop = version->type() == QtSupport::Constants::DESKTOPQT;
return FilePath::fromString(isDesktop ? version->qmlsceneCommand() : QString("qmlscene"));
return isDesktop ? version->qmlsceneCommand() : FilePath::fromString("qmlscene");
}
IDevice::ConstPtr dev = DeviceKitAspect::device(kit);