diff options
author | hjk <qtc-committer@nokia.com> | 2012-01-24 15:36:40 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-01-24 18:48:47 +0100 |
commit | 4a21f0c3c8b30cd0bc5957110506e304c629a99b (patch) | |
tree | 3d2477e3f1485ccaa319557bb2229e3f34324867 /src/plugins/welcome | |
parent | c14a4756a92586424f0f1a00c6134e441db50afd (diff) | |
download | qt-creator-4a21f0c3c8b30cd0bc5957110506e304c629a99b.tar.gz |
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 828cea1280..ec33d49f74 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -177,7 +177,7 @@ bool WelcomeMode::eventFilter(QObject *, QEvent *e) WelcomeMode::~WelcomeMode() { - QSettings *settings = Core::ICore::instance()->settings(); + QSettings *settings = Core::ICore::settings(); settings->setValue(QLatin1String(currentPageSettingsKeyC), activePlugin()); delete m_modeWidget; } @@ -193,7 +193,7 @@ void WelcomeMode::facilitateQml(QDeclarativeEngine * /*engine*/) void WelcomeMode::initPlugins() { - QSettings *settings = Core::ICore::instance()->settings(); + QSettings *settings = Core::ICore::settings(); setActivePlugin(settings->value(QLatin1String(currentPageSettingsKeyC)).toInt()); // TODO: re-enable reading from Settings when possible. See QTCREATORBUG-6803 @@ -227,7 +227,7 @@ void WelcomeMode::initPlugins() // finally, load the root page m_welcomePage->setSource( - QUrl::fromLocalFile(Core::ICore::instance()->resourcePath() + QLatin1String("/welcomescreen/welcomescreen.qml"))); + QUrl::fromLocalFile(Core::ICore::resourcePath() + QLatin1String("/welcomescreen/welcomescreen.qml"))); } QString WelcomeMode::platform() const @@ -270,7 +270,7 @@ void WelcomeMode::sendFeedback() void WelcomeMode::newProject() { - Core::ICore::instance()->showNewItemDialog(tr("New Project"), + Core::ICore::showNewItemDialog(tr("New Project"), Core::IWizard::wizardsOfKind(Core::IWizard::ProjectWizard)); } @@ -286,8 +286,8 @@ void WelcomeMode::modeChanged(Core::IMode *mode) // Eike doesn't like this, but I do... // ProjectExplorer::ProjectExplorerPlugin *projectExplorer = ProjectExplorer::ProjectExplorerPlugin::instance(); -// Core::ModeManager *modeManager = Core::ICore::instance()->modeManager(); -// Core::EditorManager *editorManager = Core::ICore::instance()->editorManager(); +// Core::ModeManager *modeManager = Core::ICore::modeManager(); +// Core::EditorManager *editorManager = Core::ICore::editorManager(); // if (mode->id() == id() && (!projectExplorer->currentProject() && editorManager->openedEditors().isEmpty())) // modeManager->setModeBarHidden(true); // else |