summaryrefslogtreecommitdiff
path: root/src/plugins/qmljstools/qmljstoolsplugin.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2012-01-24 15:36:40 +0100
committerhjk <qthjk@ovi.com>2012-01-24 18:48:47 +0100
commit4a21f0c3c8b30cd0bc5957110506e304c629a99b (patch)
tree3d2477e3f1485ccaa319557bb2229e3f34324867 /src/plugins/qmljstools/qmljstoolsplugin.cpp
parentc14a4756a92586424f0f1a00c6134e441db50afd (diff)
downloadqt-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/qmljstools/qmljstoolsplugin.cpp')
-rw-r--r--src/plugins/qmljstools/qmljstoolsplugin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/qmljstools/qmljstoolsplugin.cpp b/src/plugins/qmljstools/qmljstoolsplugin.cpp
index 7dcddd2913..1f7542a23d 100644
--- a/src/plugins/qmljstools/qmljstoolsplugin.cpp
+++ b/src/plugins/qmljstools/qmljstoolsplugin.cpp
@@ -77,8 +77,7 @@ bool QmlJSToolsPlugin::initialize(const QStringList &arguments, QString *error)
Q_UNUSED(arguments)
Q_UNUSED(error)
- Core::ICore *core = Core::ICore::instance();
- Core::ActionManager *am = core->actionManager();
+ Core::ActionManager *am = Core::ICore::actionManager();
m_settings = new QmlJSToolsSettings(this); // force registration of qmljstools settings
@@ -113,9 +112,9 @@ bool QmlJSToolsPlugin::initialize(const QStringList &arguments, QString *error)
mqmljstools->addAction(cmd);
// watch task progress
- connect(core->progressManager(), SIGNAL(taskStarted(QString)),
+ connect(Core::ICore::progressManager(), SIGNAL(taskStarted(QString)),
this, SLOT(onTaskStarted(QString)));
- connect(core->progressManager(), SIGNAL(allTasksFinished(QString)),
+ connect(Core::ICore::progressManager(), SIGNAL(allTasksFinished(QString)),
this, SLOT(onAllTasksFinished(QString)));
return true;