diff options
| author | hjk <hjk@qt.io> | 2023-12-21 17:31:38 +0100 |
|---|---|---|
| committer | hjk <hjk@qt.io> | 2024-01-12 06:53:40 +0000 |
| commit | 052ea6d23185943f12cccbf70df0ea52fc0171ba (patch) | |
| tree | 8011517a3e5e16c34ce14d3c82861ad76e1e3bed /src/plugins/python/pythoneditor.cpp | |
| parent | 460b1641e0f950f9ba163100763b0fbdc9fb707a (diff) | |
Python: Move highlighter and indenter class definitions to .cpp
Change-Id: Ib71d520977034ca66bd84c9188ffed5fe74e1ba0
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
| -rw-r--r-- | src/plugins/python/pythoneditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
