aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythoneditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
-rw-r--r--src/plugins/python/pythoneditor.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp
index ddd30f2acf5..94a8e498eba 100644
--- a/src/plugins/python/pythoneditor.cpp
+++ b/src/plugins/python/pythoneditor.cpp
@@ -27,7 +27,6 @@
#include <projectexplorer/target.h>
#include <texteditor/texteditor.h>
-#include <texteditor/texteditoractionhandler.h>
#include <utils/stylehelper.h>
@@ -317,10 +316,10 @@ public:
setDisplayName(::Core::Tr::tr(Constants::C_EDITOR_DISPLAY_NAME));
addMimeType(Constants::C_PY_MIMETYPE);
- setEditorActionHandlers(TextEditorActionHandler::Format
- | TextEditorActionHandler::UnCommentSelection
- | TextEditorActionHandler::UnCollapseAll
- | TextEditorActionHandler::FollowSymbolUnderCursor);
+ setOptionalActionMask(OptionalActions::Format
+ | OptionalActions::UnCommentSelection
+ | OptionalActions::UnCollapseAll
+ | OptionalActions::FollowSymbolUnderCursor);
setDocumentCreator([]() { return new PythonDocument; });
setEditorWidgetCreator([]() { return new PythonEditorWidget; });