forked from qt-creator/qt-creator
Make Components installable. Fix Shadow Build.
Task-Number: QTCREATORBUG-5672 Done-with: Oswald Buddenhagen Change-Id: I61f8a83205bc338ba12e43b7471eaa957da2b004 Reviewed-on: http://codereview.qt.nokia.com/2451 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
6c8edcf99e
commit
9743b43663
@@ -53,6 +53,8 @@
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QSettings>
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QUrl>
|
||||
@@ -224,7 +226,13 @@ void WelcomeMode::initPlugins()
|
||||
if (!debug)
|
||||
engine->setOutputWarningsToStandardError(false);
|
||||
engine->setNetworkAccessManagerFactory(new NetworkAccessManagerFactory);
|
||||
engine->addImportPath(Core::ICore::instance()->resourcePath() + "/welcomescreen");
|
||||
QString pluginPath = QCoreApplication::applicationDirPath();
|
||||
#ifdef Q_OS_MAC
|
||||
pluginPath += QLatin1String("/../PlugIns");
|
||||
#else
|
||||
pluginPath += QLatin1String("/../" IDE_LIBRARY_BASENAME "/qtcreator");
|
||||
#endif
|
||||
engine->addImportPath(QDir::cleanPath(pluginPath));
|
||||
facilitateQml(engine);
|
||||
foreach (Utils::IWelcomePage *plugin, plugins) {
|
||||
plugin->facilitateQml(engine);
|
||||
|
||||
Reference in New Issue
Block a user