diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-05-24 13:49:06 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-05-25 10:08:24 +0200 |
commit | 3934347fe9ed7e1567c3ff377f857928e8b03304 (patch) | |
tree | 09f1ccaf1af2d8032bb12ea0a5a05b4b4185d431 /src/plugins/git/gerrit/gerritplugin.cpp | |
parent | 7c7ccdc764629042729ceede4ca3e47b464aee42 (diff) | |
download | qt-creator-3934347fe9ed7e1567c3ff377f857928e8b03304.tar.gz |
ActionManager API cleanup.
d-pointer instead of inheritance
static methods
Change-Id: I7b2f0c8b05ad3951e1ff26a7d4e08e195d2dd258
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/git/gerrit/gerritplugin.cpp')
-rw-r--r-- | src/plugins/git/gerrit/gerritplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index 3b88a1b6f1..3705bee810 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -346,11 +346,10 @@ bool GerritPlugin::initialize(Core::ActionContainer *ac) { m_parameters->fromSettings(Core::ICore::instance()->settings()); - Core::ActionManager *am = Core::ICore::instance()->actionManager(); QAction *openViewAction = new QAction(tr("Gerrit..."), this); Core::Command *command = - am->registerAction(openViewAction, Constants::GERRIT_OPEN_VIEW, + Core::ActionManager::registerAction(openViewAction, Constants::GERRIT_OPEN_VIEW, Core::Context(Core::Constants::C_GLOBAL)); connect(openViewAction, SIGNAL(triggered()), this, SLOT(openView())); ac->addAction(command); |