diff options
author | hjk <qtc-committer@nokia.com> | 2012-01-24 15:36:40 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-01-24 18:48:47 +0100 |
commit | 4a21f0c3c8b30cd0bc5957110506e304c629a99b (patch) | |
tree | 3d2477e3f1485ccaa319557bb2229e3f34324867 /src/plugins/coreplugin/actionmanager | |
parent | c14a4756a92586424f0f1a00c6134e441db50afd (diff) | |
download | qt-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/coreplugin/actionmanager')
-rw-r--r-- | src/plugins/coreplugin/actionmanager/actionmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/coreplugin/actionmanager/actionmanager.cpp b/src/plugins/coreplugin/actionmanager/actionmanager.cpp index 1473863087..5c401bef79 100644 --- a/src/plugins/coreplugin/actionmanager/actionmanager.cpp +++ b/src/plugins/coreplugin/actionmanager/actionmanager.cpp @@ -64,7 +64,7 @@ namespace { You get the only implementation of this class from the core interface ICore::actionManager() method, e.g. \code - Core::ICore::instance()->actionManager() + Core::ICore::actionManager() \endcode The main reasons for the need of this class is to provide a central place where the user @@ -99,7 +99,7 @@ namespace { To register a globally active action "My Action" put the following in your plugin's IPlugin::initialize method: \code - Core::ActionManager *am = Core::ICore::instance()->actionManager(); + Core::ActionManager *am = Core::ICore::actionManager(); QAction *myAction = new QAction(tr("My Action"), this); Core::Command *cmd = am->registerAction(myAction, "myplugin.myaction", @@ -505,7 +505,7 @@ static const char sequenceKey[] = "Keysequence"; void ActionManagerPrivate::initialize() { - QSettings *settings = Core::ICore::instance()->settings(); + QSettings *settings = Core::ICore::settings(); const int shortcuts = settings->beginReadArray(QLatin1String(settingsGroup)); for (int i = 0; i < shortcuts; ++i) { settings->setArrayIndex(i); |