diff options
| author | Eike Ziller <eike.ziller@digia.com> | 2014-03-05 15:58:12 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@digia.com> | 2014-03-05 16:27:52 +0100 |
| commit | 5dd8d7cd9c04909df1644ba415c578db1e157ba1 (patch) | |
| tree | b7db95ce4bf2ff2b91a7ef566a1e2935a6dd7ba4 /src/plugins/pythoneditor/pythoneditorwidget.cpp | |
| parent | 424a5c14897ecdaaa12f038dc6e11836b764f516 (diff) | |
| download | qt-creator-5dd8d7cd9c04909df1644ba415c578db1e157ba1.tar.gz | |
Editors: Move id() from editor to document.
Change-Id: Ib81076842ab1c16832224790194b001206404d64
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
| -rw-r--r-- | src/plugins/pythoneditor/pythoneditorwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp index e263ed445b..fc69254e9e 100644 --- a/src/plugins/pythoneditor/pythoneditorwidget.cpp +++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp @@ -37,6 +37,7 @@ #include "tools/pythonhighlighter.h" #include "tools/pythonindenter.h" #include "pythoneditor.h" +#include "pythoneditorconstants.h" #include <texteditor/fontsettings.h> #include <texteditor/texteditorconstants.h> @@ -50,6 +51,7 @@ namespace Internal { EditorWidget::EditorWidget(QWidget *parent) : TextEditor::BaseTextEditorWidget(parent) { + baseTextDocument()->setId(Constants::C_PYTHONEDITOR_ID); baseTextDocument()->setIndenter(new PythonIndenter()); ctor(); } |
