forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user