QmlProjectManager: fix missing FilePath::isLocal()

- Qt Creator 16 provides isLocal() for checking local file paths.
- Qt Creator 15 uses needsDevice(), which is the exact negation
  of isLocal().
- qds/4.7 is still based on QtCreator 15

Change-Id: I2abd7c53c94571dfc16d6cee86acfce9669bb8b4
Reviewed-by: Andrii Semkiv <andrii.semkiv@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenßen
2025-03-25 08:52:33 +01:00
committed by Tim Jenssen
parent 5013daa7b0
commit 362956a710

View File

@@ -216,7 +216,7 @@ FilePath QmlProjectRunConfiguration::qmlRuntimeFilePath() const
if (QtVersion *version = QtKitAspect::qtVersion(kit)) {
// look for QML Puppet as qmlruntime only in QtStudio Qt versions
if (version->features().contains("QtStudio") && version->qtVersion().majorVersion() > 5
&& dev->rootPath().isLocal()) {
&& !dev->rootPath().needsDevice()) {
auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths(
target(), QmlDesigner::QmlDesignerBasePlugin::settings());
if (!puppetPath.isEmpty()) {