forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user