forked from qt-creator/qt-creator
WelcomeScreen: fix components imports on Windows
The path-based loader in QML is broken there. Change-Id: I390370ca098e288f6e241c526e068a70f17d676f Reviewed-on: http://codereview.qt.nokia.com/947 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
@@ -182,6 +182,7 @@ void WelcomeMode::initPlugins()
|
||||
|
||||
QDeclarativeEngine *engine = m_welcomePage->engine();
|
||||
engine->setNetworkAccessManagerFactory(new NetworkAccessManagerFactory);
|
||||
engine->addImportPath(Core::ICore::instance()->resourcePath() + "/welcomescreen");
|
||||
foreach (Utils::IWelcomePage *plugin, plugins) {
|
||||
plugin->facilitateQml(engine);
|
||||
m_pluginList.append(plugin);
|
||||
|
||||
Reference in New Issue
Block a user