summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorwidget.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-07-31 14:44:42 +0200
committerhjk <hjk121@nokiamail.com>2014-08-01 14:10:23 +0200
commitf5b0bd32b20fc1e37f95b412252b597b9936dda7 (patch)
treecfc1caf4b8adb4a1b3cbc6380ef6d009039d6ade /src/plugins/pythoneditor/pythoneditorwidget.cpp
parent73d41589ab1aeb3be2593045618fc15e4592c17b (diff)
downloadqt-creator-f5b0bd32b20fc1e37f95b412252b597b9936dda7.tar.gz
TextEditor: Remove one stack of EditorWidget constructors
There are conceptually only two: one that operates a new document, and one that shares one. Being explicit makes moving data over to the Editor hierarchy easier. Convenience can be re-added there, later. Change-Id: I9b34ff26628c99ffff01201dcf99332d5e7253e9 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorwidget.cpp7
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();
}