aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditoractionhandler.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-12-10 12:36:15 +0100
committerEike Ziller <eike.ziller@digia.com>2013-12-11 16:02:07 +0100
commitb55df87a7bf9afc3c2f452f77cfc19b2782a9d49 (patch)
tree7a5f64790d292707f726ab1417f2f965a976c9cd /src/plugins/texteditor/texteditoractionhandler.h
parente922cd234b4452906bf711938b6e6fd67d80b069 (diff)
TextEditor: Remove "actionHack" and utilize contexts instead.
The actionHack was used to only forward actions to editors that "belong" to that action handler instance. That is already clearly defined by the context that the action handler is created for, so we can just use that instead. Change-Id: Ia4c6795c80bb281c1ed258324925f56ca7fd8150 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/texteditor/texteditoractionhandler.h')
-rw-r--r--src/plugins/texteditor/texteditoractionhandler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/texteditoractionhandler.h b/src/plugins/texteditor/texteditoractionhandler.h
index a09e6a3a84..48f79408e0 100644
--- a/src/plugins/texteditor/texteditoractionhandler.h
+++ b/src/plugins/texteditor/texteditoractionhandler.h
@@ -65,7 +65,7 @@ public:
JumpToFileUnderCursor = 16
};
- explicit TextEditorActionHandler(const char *context, uint optionalActions = None);
+ explicit TextEditorActionHandler(Core::Id contextId, uint optionalActions = None);
~TextEditorActionHandler();
void setupActions(BaseTextEditorWidget *editor);
@@ -226,7 +226,7 @@ private:
uint m_optionalActions;
QPointer<BaseTextEditorWidget> m_currentEditor;
- Core::Context m_contextId;
+ Core::Id m_contextId;
bool m_initialized;
};