forked from qt-creator/qt-creator
QmlDesigner: Add env variable to load different qt qml directory
Fixes: QDS-15591 Change-Id: I29f23812b62e571d204869df866ffc5fe51bd067 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -194,6 +194,9 @@ Sqlite::JournalMode projectStorageJournalMode()
|
|||||||
|
|
||||||
[[maybe_unused]] QString qmlPath(::ProjectExplorer::Target *target)
|
[[maybe_unused]] QString qmlPath(::ProjectExplorer::Target *target)
|
||||||
{
|
{
|
||||||
|
if (auto path = qEnvironmentVariable("QDS_QML_DUMMY_DIRECTORY"); path.size())
|
||||||
|
return path;
|
||||||
|
|
||||||
auto qt = QtSupport::QtKitAspect::qtVersion(target->kit());
|
auto qt = QtSupport::QtKitAspect::qtVersion(target->kit());
|
||||||
if (qt)
|
if (qt)
|
||||||
return qt->qmlPath().cleanPath().path();
|
return qt->qmlPath().cleanPath().path();
|
||||||
|
Reference in New Issue
Block a user