forked from qt-creator/qt-creator
TextEditor: Update tab settings for all tab changes
Not just for selected documents. This also removes the need for the separate setupAsPlainTextDocument function. Change-Id: I51a04eebbad37a7598068ce6e157a53c1519464f Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -62,7 +62,6 @@ PlainTextEditorFactory::PlainTextEditorFactory(QObject *parent)
|
||||
Core::IEditor *PlainTextEditorFactory::createEditor()
|
||||
{
|
||||
auto doc = new BaseTextDocument;
|
||||
doc->setupAsPlainTextDocument();
|
||||
doc->setId(Core::Constants::K_DEFAULT_TEXT_EDITOR_ID);
|
||||
doc->setIndenter(new NormalIndenter);
|
||||
auto widget = new BaseTextEditorWidget(doc);
|
||||
|
||||
Reference in New Issue
Block a user