diff options
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditorwidget.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp index 495ba2158d..2fcf5a2c6e 100644 --- a/src/plugins/pythoneditor/pythoneditorwidget.cpp +++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp @@ -35,7 +35,6 @@ #include "pythoneditorwidget.h" #include "tools/pythonhighlighter.h" -#include "tools/pythonindenter.h" #include "pythoneditor.h" #include "pythoneditorconstants.h" @@ -48,11 +47,9 @@ namespace PythonEditor { namespace Internal { -PythonEditorWidget::PythonEditorWidget(QWidget *parent) - : TextEditor::BaseTextEditorWidget(parent) +PythonEditorWidget::PythonEditorWidget(TextEditor::BaseTextDocument *doc, QWidget *parent) + : TextEditor::BaseTextEditorWidget(doc, parent) { - baseTextDocument()->setId(Constants::C_PYTHONEDITOR_ID); - baseTextDocument()->setIndenter(new PythonIndenter()); ctor(); } |