summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/plaintexteditorfactory.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-07-30 15:10:56 +0200
committerhjk <hjk121@nokiamail.com>2014-07-30 16:21:43 +0200
commit6a52868cddb30e25788de317575f6d4dd29f8f9d (patch)
tree35f4d198a2be25f7f73bd0a6f62021eeb377bca5 /src/plugins/texteditor/plaintexteditorfactory.cpp
parent1924fdb90f8851bae4ba8d0648603dd53f5d64ae (diff)
downloadqt-creator-6a52868cddb30e25788de317575f6d4dd29f8f9d.tar.gz
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>
Diffstat (limited to 'src/plugins/texteditor/plaintexteditorfactory.cpp')
-rw-r--r--src/plugins/texteditor/plaintexteditorfactory.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/texteditor/plaintexteditorfactory.cpp b/src/plugins/texteditor/plaintexteditorfactory.cpp
index 66b989269d..2bcbc2a0fc 100644
--- a/src/plugins/texteditor/plaintexteditorfactory.cpp
+++ b/src/plugins/texteditor/plaintexteditorfactory.cpp
@@ -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);