TextEditor: Remove indenter construction from PlainTextEditorWidget

Do it in the users "that know" and remove the special constructor case.

Change-Id: I9298c8d13118068adc7958c0894dccb7af4d7855
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-07-30 10:41:06 +02:00
parent fde176e51c
commit 01822144d1
5 changed files with 13 additions and 16 deletions

View File

@@ -101,7 +101,7 @@ public:
// Open file
QScopedPointer<TextEditor::BaseTextEditorWidget> editorWidget(
new TextEditor::PlainTextEditorWidget);
new TextEditor::PlainTextEditorWidget(new TextEditor::PlainTextDocument));
QString error;
editorWidget->open(&error, document->fileName(), document->fileName());
QVERIFY(error.isEmpty());