forked from qt-creator/qt-creator
qmlprojectmanager: fix Cannot run Qt5 projects
qml2puppet only enables the qmlruntime feature if it was built against a Qt 6. Task-number: QDS-9088 Change-Id: If573cae305ef18c11101a591e6c1e38f133b7914 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -190,11 +190,13 @@ FilePath QmlProjectRunConfiguration::qmlRuntimeFilePath() const
|
|||||||
// If not given explicitly by Qt Version, try to pick it from $PATH.
|
// If not given explicitly by Qt Version, try to pick it from $PATH.
|
||||||
const bool isDesktop = version->type() == QtSupport::Constants::DESKTOPQT;
|
const bool isDesktop = version->type() == QtSupport::Constants::DESKTOPQT;
|
||||||
|
|
||||||
auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths(
|
if (version->qtVersion().majorVersion() > 5) {
|
||||||
target(), QmlDesigner::QmlDesignerBasePlugin::settings());
|
auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths(
|
||||||
if (!puppetPath.isEmpty()) {
|
target(), QmlDesigner::QmlDesignerBasePlugin::settings());
|
||||||
usePuppetAsQmlRuntime = true;
|
if (!puppetPath.isEmpty()) {
|
||||||
return puppetPath;
|
usePuppetAsQmlRuntime = true;
|
||||||
|
return puppetPath;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return isDesktop ? version->qmlRuntimeFilePath() : "qmlscene";
|
return isDesktop ? version->qmlRuntimeFilePath() : "qmlscene";
|
||||||
|
|||||||
Reference in New Issue
Block a user