diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-05-12 11:10:19 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-05-12 09:10:48 +0000 |
commit | 442f4cd7239580aca3fc6024fb3f464e0423a9f1 (patch) | |
tree | ee89274a6e0a7a33f08313ce7d5dbe797a8a246b | |
parent | 9d5512b1374998d2928d14e14257253dfa9a0d26 (diff) | |
download | qt-creator-442f4cd7239580aca3fc6024fb3f464e0423a9f1.tar.gz |
StudioWelcome: Add import path for dataImports
This will be the im[port path for the data driving tutorials
and examples.
Change-Id: I358de354565e9670fefeb7a4194af4aec5182184
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/plugins/studiowelcome/studiowelcomeplugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 0637f04ef7..17c37fccf3 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -693,6 +693,7 @@ WelcomeMode::WelcomeMode() const QString welcomePagePath = Core::ICore::resourcePath("qmldesigner/welcomepage").toString(); m_modeWidget->engine()->addImportPath(welcomePagePath + "/imports"); + m_modeWidget->engine()->addImportPath(welcomePagePath + "/dataImports"); m_modeWidget->setSource(QUrl::fromLocalFile(welcomePagePath + "/main.qml")); QShortcut *updateShortcut = nullptr; |