summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorwidget.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2014-01-13 16:56:53 +0100
committerEike Ziller <eike.ziller@digia.com>2014-01-15 15:02:25 +0100
commit3ad38766112a6e0af67ad18c7244e251dc911f19 (patch)
treedee5c4e44b63113537d77a3b7f46963b1981441f /src/plugins/pythoneditor/pythoneditorwidget.cpp
parent8772e6e85b2be4bd79cae4e21367e23a1ad94ed7 (diff)
downloadqt-creator-3ad38766112a6e0af67ad18c7244e251dc911f19.tar.gz
TextEditors: Move indenter to document.
Change-Id: I8bdf7134562d007aa16cc63a34f5a15a708577ae Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp
index 4e5b119f3e..e5ee2521f2 100644
--- a/src/plugins/pythoneditor/pythoneditorwidget.cpp
+++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp
@@ -50,6 +50,7 @@ namespace Internal {
EditorWidget::EditorWidget(QWidget *parent)
: TextEditor::BaseTextEditorWidget(parent)
{
+ baseTextDocument()->setIndenter(new PythonIndenter());
ctor();
}
@@ -69,7 +70,6 @@ void EditorWidget::ctor()
setMarksVisible(true);
setCodeFoldingSupported(true);
- setIndenter(new PythonIndenter());
new PythonHighlighter(baseTextDocument());
}