aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/helloworld
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2012-05-24 13:49:06 +0200
committerhjk <qthjk@ovi.com>2012-05-25 10:08:24 +0200
commit3934347fe9ed7e1567c3ff377f857928e8b03304 (patch)
tree09f1ccaf1af2d8032bb12ea0a5a05b4b4185d431 /src/plugins/helloworld
parent7c7ccdc764629042729ceede4ca3e47b464aee42 (diff)
ActionManager API cleanup.
d-pointer instead of inheritance static methods Change-Id: I7b2f0c8b05ad3951e1ff26a7d4e08e195d2dd258 Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/helloworld')
-rw-r--r--src/plugins/helloworld/helloworldplugin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/helloworld/helloworldplugin.cpp b/src/plugins/helloworld/helloworldplugin.cpp
index 64fb34d1e0..7c3f175137 100644
--- a/src/plugins/helloworld/helloworldplugin.cpp
+++ b/src/plugins/helloworld/helloworldplugin.cpp
@@ -105,14 +105,13 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe
connect(helloWorldAction, SIGNAL(triggered()), SLOT(sayHelloWorld()));
// Register the action with the action manager
- Core::ActionManager *actionManager = Core::ICore::actionManager();
Core::Command *command =
- actionManager->registerAction(
+ Core::ActionManager::registerAction(
helloWorldAction, "HelloWorld.HelloWorldAction", context);
// Create our own menu to place in the Tools menu
Core::ActionContainer *helloWorldMenu =
- actionManager->createMenu("HelloWorld.HelloWorldMenu");
+ Core::ActionManager::createMenu("HelloWorld.HelloWorldMenu");
QMenu *menu = helloWorldMenu->menu();
menu->setTitle(tr("&Hello World"));
menu->setEnabled(true);
@@ -122,7 +121,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe
// Request the Tools menu and add the Hello World menu to it
Core::ActionContainer *toolsMenu =
- actionManager->actionContainer(Core::Constants::M_TOOLS);
+ Core::ActionManager::actionContainer(Core::Constants::M_TOOLS);
toolsMenu->addMenu(helloWorldMenu);
// Add a mode with a push button based on BaseMode. Like the BaseView,