aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-03-04 15:35:34 +0100
committerChristian Stenger <christian.stenger@qt.io>2020-03-05 07:14:40 +0000
commitd2759075dec17ea8ba4f347c4f6e4923f5ba607f (patch)
tree4eabb4f37f9735d3632d354a56d58f8ab9a4c7bc
parent103ab51f70ebe866adc2f0091278f246faa763d9 (diff)
TextEditor: Do not overwrite existing indentersv4.12.0-beta1
In 6959618d7b2d9efc8f5f668489523d1833d4b396 a default indenter was set on all text editor factories. Unfortunately some editors, like the C++ editor, set their indenter in the text document constructor, which would then be overridden by this default indenter. For now remove the default indenter again until this is better thought through. Partially reverts 6959618d7b2d9efc8f5f668489523d1833d4b396. Change-Id: I8f32e92438883edb6be853fa838b75297347a937 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/texteditor/texteditor.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp
index 2e65082918..2a6563c219 100644
--- a/src/plugins/texteditor/texteditor.cpp
+++ b/src/plugins/texteditor/texteditor.cpp
@@ -8542,7 +8542,6 @@ public:
TextEditorFactoryPrivate(TextEditorFactory *parent)
: q(parent)
, m_widgetCreator([]() { return new TextEditorWidget; })
- , m_indenterCreator([](QTextDocument *d) { return new TextIndenter(d); })
{}
BaseTextEditor *duplicateTextEditor(BaseTextEditor *other)