summaryrefslogtreecommitdiff
path: root/src/plugins/macros/texteditormacrohandler.cpp
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/macros/texteditormacrohandler.cpp
parent7c7ccdc764629042729ceede4ca3e47b464aee42 (diff)
downloadqt-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/macros/texteditormacrohandler.cpp')
-rw-r--r--src/plugins/macros/texteditormacrohandler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/macros/texteditormacrohandler.cpp b/src/plugins/macros/texteditormacrohandler.cpp
index 74327b090e..a7229e4711 100644
--- a/src/plugins/macros/texteditormacrohandler.cpp
+++ b/src/plugins/macros/texteditormacrohandler.cpp
@@ -78,8 +78,7 @@ void TextEditorMacroHandler::startRecording(Macros::Macro *macro)
m_currentEditor->widget()->installEventFilter(this);
// Block completion
- Core::ActionManager *am = Core::ICore::actionManager();
- am->command(TextEditor::Constants::COMPLETE_THIS)->shortcut()->blockSignals(true);
+ Core::ActionManager::command(TextEditor::Constants::COMPLETE_THIS)->shortcut()->blockSignals(true);
}
void TextEditorMacroHandler::endRecordingMacro(Macros::Macro *macro)
@@ -89,8 +88,7 @@ void TextEditorMacroHandler::endRecordingMacro(Macros::Macro *macro)
IMacroHandler::endRecordingMacro(macro);
// Unblock completion
- Core::ActionManager *am = Core::ICore::actionManager();
- am->command(TextEditor::Constants::COMPLETE_THIS)->shortcut()->blockSignals(false);
+ Core::ActionManager::command(TextEditor::Constants::COMPLETE_THIS)->shortcut()->blockSignals(false);
}
bool TextEditorMacroHandler::canExecuteEvent(const MacroEvent &macroEvent)