diff options
| author | David Schulz <david.schulz@qt.io> | 2024-03-27 14:00:21 +0100 |
|---|---|---|
| committer | David Schulz <david.schulz@qt.io> | 2024-04-09 10:52:26 +0000 |
| commit | 411100b0378202dc617acaa236f4730eb4cc43b2 (patch) | |
| tree | 9f21fb2b88ae98c990e9e85265ba73857b0b9c05 /src/plugins/android/javaeditor.cpp | |
| parent | c459e8d49086903389b0e428e25608b1d68e275b (diff) | |
TextEditor: remove text editor action handler
Give each editor a context and register editor actions individually for
that context. This removes the need to tell the action handler the
current editor. Additionally all actions are now available in editor
widgets outside of the EditorManager.
Change-Id: I0109866b180889762f8bd8aa07874d8d7c55bfa6
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/android/javaeditor.cpp')
| -rw-r--r-- | src/plugins/android/javaeditor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/android/javaeditor.cpp b/src/plugins/android/javaeditor.cpp index 27ced1b025a..8fa69e6e8b2 100644 --- a/src/plugins/android/javaeditor.cpp +++ b/src/plugins/android/javaeditor.cpp @@ -10,7 +10,6 @@ #include <texteditor/codeassist/keywordscompletionassist.h> #include <texteditor/textdocument.h> -#include <texteditor/texteditoractionhandler.h> #include <texteditor/texteditorconstants.h> #include <texteditor/texteditor.h> @@ -48,7 +47,7 @@ public: setDocumentCreator(createJavaDocument); setUseGenericHighlighter(true); setCommentDefinition(Utils::CommentDefinition::CppStyle); - setEditorActionHandlers(TextEditor::TextEditorActionHandler::UnCommentSelection); + setOptionalActionMask(TextEditor::OptionalActions::UnCommentSelection); setCompletionAssistProvider(new TextEditor::KeywordsCompletionAssistProvider(keywords)); } }; |
