From 442f4cd7239580aca3fc6024fb3f464e0423a9f1 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 12 May 2022 11:10:19 +0200 Subject: 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 --- src/plugins/studiowelcome/studiowelcomeplugin.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3