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>
This commit is contained in:
Thomas Hartmann
2022-05-12 11:10:19 +02:00
parent 9d5512b137
commit 442f4cd723

View File

@@ -693,6 +693,7 @@ WelcomeMode::WelcomeMode()
const QString welcomePagePath = Core::ICore::resourcePath("qmldesigner/welcomepage").toString(); const QString welcomePagePath = Core::ICore::resourcePath("qmldesigner/welcomepage").toString();
m_modeWidget->engine()->addImportPath(welcomePagePath + "/imports"); m_modeWidget->engine()->addImportPath(welcomePagePath + "/imports");
m_modeWidget->engine()->addImportPath(welcomePagePath + "/dataImports");
m_modeWidget->setSource(QUrl::fromLocalFile(welcomePagePath + "/main.qml")); m_modeWidget->setSource(QUrl::fromLocalFile(welcomePagePath + "/main.qml"));
QShortcut *updateShortcut = nullptr; QShortcut *updateShortcut = nullptr;