diff options
author | hjk <[email protected]> | 2012-01-24 15:36:40 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2012-01-24 18:48:47 +0100 |
commit | 4a21f0c3c8b30cd0bc5957110506e304c629a99b (patch) | |
tree | 3d2477e3f1485ccaa319557bb2229e3f34324867 /src/plugins/debugger/debuggerplugin.cpp | |
parent | c14a4756a92586424f0f1a00c6134e441db50afd (diff) |
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index e0ec8d4d777..b58a2ac49d4 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -2449,7 +2449,7 @@ void DebuggerPluginPrivate::onModeChanged(IMode *mode) void DebuggerPluginPrivate::showSettingsDialog() { - ICore::instance()->showOptionsDialog( + ICore::showOptionsDialog( _(DEBUGGER_SETTINGS_CATEGORY), _(DEBUGGER_COMMON_SETTINGS_ID)); } @@ -2655,7 +2655,7 @@ void DebuggerPluginPrivate::showQtDumperLibraryWarning(const QString &details) dialog.setDetailedText(details); dialog.exec(); if (dialog.clickedButton() == qtPref) { - ICore::instance()->showOptionsDialog( + ICore::showOptionsDialog( _(ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_CATEGORY), _(QtSupport::Constants::QTVERSION_SETTINGS_PAGE_ID)); } else if (dialog.clickedButton() == helperOff) { @@ -2852,16 +2852,14 @@ QMessageBox *showMessageBox(int icon, const QString &title, void DebuggerPluginPrivate::extensionsInitialized() { - ICore *core = ICore::instance(); - QTC_ASSERT(core, return); - m_coreSettings = core->settings(); + m_coreSettings = ICore::settings(); m_debuggerSettings = new DebuggerSettings(m_coreSettings); m_debuggerSettings->readSettings(); - connect(core, SIGNAL(coreAboutToClose()), this, SLOT(coreShutdown())); + connect(ICore::instance(), SIGNAL(coreAboutToClose()), this, SLOT(coreShutdown())); - ActionManager *am = core->actionManager(); + ActionManager *am = ICore::actionManager(); QTC_ASSERT(am, return); m_plugin->addObject(this); @@ -3404,7 +3402,7 @@ void DebuggerPluginPrivate::extensionsInitialized() // // Core - connect(core, SIGNAL(saveSettingsRequested()), SLOT(writeSettings())); + connect(ICore::instance(), SIGNAL(saveSettingsRequested()), SLOT(writeSettings())); // TextEditor connect(TextEditorSettings::instance(), @@ -3422,7 +3420,7 @@ void DebuggerPluginPrivate::extensionsInitialized() SLOT(updateDebugActions())); // EditorManager - QObject *editorManager = core->editorManager(); + QObject *editorManager = ICore::editorManager(); connect(editorManager, SIGNAL(editorOpened(Core::IEditor*)), SLOT(editorOpened(Core::IEditor*))); connect(editorManager, SIGNAL(currentEditorChanged(Core::IEditor*)), @@ -3572,13 +3570,10 @@ DebuggerPlugin::~DebuggerPlugin() bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMessage) { - ICore *core = ICore::instance(); - QTC_ASSERT(core, return false); - // Menu groups const Context globalcontext(CC::C_GLOBAL); - ActionManager *am = core->actionManager(); + ActionManager *am = ICore::actionManager(); ActionContainer *mstart = am->actionContainer(PE::M_DEBUG_STARTDEBUGGING); mstart->appendGroup(Constants::G_START_LOCAL); |