summaryrefslogtreecommitdiff
path: root/src/plugins/imageviewer
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/imageviewer
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/imageviewer')
-rw-r--r--src/plugins/imageviewer/imagevieweractionhandler.cpp2
-rw-r--r--src/plugins/imageviewer/imageviewerplugin.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/imageviewer/imagevieweractionhandler.cpp b/src/plugins/imageviewer/imagevieweractionhandler.cpp
index d31b3fd2a3..8a8483e75b 100644
--- a/src/plugins/imageviewer/imagevieweractionhandler.cpp
+++ b/src/plugins/imageviewer/imagevieweractionhandler.cpp
@@ -109,7 +109,7 @@ void ImageViewerActionHandler::registerNewAction(int actionId, const Core::Id &i
const QString &title, const QKeySequence &key)
{
Core::Context context(Constants::IMAGEVIEWER_ID);
- Core::ActionManager *actionManager = Core::ICore::instance()->actionManager();
+ Core::ActionManager *actionManager = Core::ICore::actionManager();
QAction *action = new QAction(title, this);
Core::Command *command = actionManager->registerAction(action, id, context);
if (command)
diff --git a/src/plugins/imageviewer/imageviewerplugin.cpp b/src/plugins/imageviewer/imageviewerplugin.cpp
index 5f1ce4a546..cd1cc8c777 100644
--- a/src/plugins/imageviewer/imageviewerplugin.cpp
+++ b/src/plugins/imageviewer/imageviewerplugin.cpp
@@ -67,8 +67,7 @@ bool ImageViewerPlugin::initialize(const QStringList &arguments, QString *errorM
{
Q_UNUSED(arguments)
- Core::ICore *core = Core::ICore::instance();
- if (!core->mimeDatabase()->addMimeTypes(QLatin1String(":/imageviewer/ImageViewer.mimetypes.xml"), errorMessage))
+ if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":/imageviewer/ImageViewer.mimetypes.xml"), errorMessage))
return false;
d->factory = new ImageViewerFactory(this);