forked from qt-creator/qt-creator
TextEditor: Do not overwrite existing indenters
In6959618d7ba 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 reverts6959618d7b. Change-Id: I8f32e92438883edb6be853fa838b75297347a937 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Stenger
parent
103ab51f70
commit
d2759075de
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user