Use new static ICore interface.

Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
hjk
2012-01-24 15:36:40 +01:00
committed by hjk
parent c14a4756a9
commit 4a21f0c3c8
254 changed files with 848 additions and 1007 deletions

View File

@@ -502,9 +502,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
d = new CallgrindToolPrivate(this);
setObjectName(QLatin1String("CallgrindTool"));
Core::ICore *core = Core::ICore::instance();
QObject *editorManager = core->editorManager();
connect(editorManager, SIGNAL(editorOpened(Core::IEditor*)),
connect(Core::ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor*)),
d, SLOT(editorOpened(Core::IEditor*)));
}
@@ -541,8 +539,7 @@ IAnalyzerTool::ToolMode CallgrindTool::toolMode() const
void CallgrindTool::extensionsInitialized()
{
Core::ICore *core = Core::ICore::instance();
Core::ActionManager *actionManager = core->actionManager();
Core::ActionManager *actionManager = Core::ICore::actionManager();
Core::Context analyzerContext = Core::Context(Analyzer::Constants::C_ANALYZEMODE);

View File

@@ -83,7 +83,7 @@ bool ValgrindEngine::start()
{
emit starting(this);
Core::FutureProgress *fp = Core::ICore::instance()->progressManager()->addTask(m_progress->future(),
Core::FutureProgress *fp = Core::ICore::progressManager()->addTask(m_progress->future(),
progressTitle(), "valgrind");
fp->setKeepOnFinish(Core::FutureProgress::HideOnFinish);
m_progress->setProgressRange(0, progressMaximum);
@@ -144,7 +144,7 @@ void ValgrindEngine::handleProgressCanceled()
void ValgrindEngine::handleProgressFinished()
{
QApplication::alert(Core::ICore::instance()->mainWindow(), 3000);
QApplication::alert(Core::ICore::mainWindow(), 3000);
}
void ValgrindEngine::runnerFinished()