From 052ea6d23185943f12cccbf70df0ea52fc0171ba Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 21 Dec 2023 17:31:38 +0100 Subject: Python: Move highlighter and indenter class definitions to .cpp Change-Id: Ib71d520977034ca66bd84c9188ffed5fe74e1ba0 Reviewed-by: Reviewed-by: David Schulz --- src/plugins/python/pythoneditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/python/pythoneditor.cpp') diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp index 58635d1a69b..1c74838ea4b 100644 --- a/src/plugins/python/pythoneditor.cpp +++ b/src/plugins/python/pythoneditor.cpp @@ -293,8 +293,8 @@ PythonEditorFactory::PythonEditorFactory() setDocumentCreator([]() { return new PythonDocument; }); setEditorWidgetCreator([]() { return new PythonEditorWidget; }); - setIndenterCreator([](QTextDocument *doc) { return new PythonIndenter(doc); }); - setSyntaxHighlighterCreator([] { return new PythonHighlighter; }); + setIndenterCreator(&createPythonIndenter); + setSyntaxHighlighterCreator(&createPythonHighlighter); setCommentDefinition(CommentDefinition::HashStyle); setParenthesesMatchingEnabled(true); setCodeFoldingSupported(true); -- cgit v1.2.3