forked from qt-creator/qt-creator
QmlDesigner: Take puppet version into account
Change-Id: I8bd6f588dcf00e20dbcddde9caee8eef3eafc3b0 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
#include <model.h>
|
||||
|
||||
#include <app/app_version.h>
|
||||
|
||||
#include <projectexplorer/kit.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <utils/algorithm.h>
|
||||
@@ -40,7 +42,9 @@ Utils::FilePath pathForBinPuppet(ProjectExplorer::Target *target)
|
||||
QtSupport::QtVersion *currentQtVersion = QtSupport::QtKitAspect::qtVersion(target->kit());
|
||||
|
||||
if (currentQtVersion)
|
||||
return currentQtVersion->binPath().pathAppended("qml2puppet").withExecutableSuffix();
|
||||
return currentQtVersion->binPath()
|
||||
.pathAppended(QString{"qml2puppet-"} + Core::Constants::IDE_VERSION_LONG)
|
||||
.withExecutableSuffix();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
Reference in New Issue
Block a user