summaryrefslogtreecommitdiff
path: root/src/plugins/pythoneditor/pythoneditorfactory.cpp
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-08-19 12:12:45 +0200
committerhjk <hjk121@nokiamail.com>2014-08-20 13:28:44 +0200
commitcb35594800a2f6d567ba78b8ed329f5eff8dfacd (patch)
tree31b2fe952017eff98a97931190054eff033162c5 /src/plugins/pythoneditor/pythoneditorfactory.cpp
parentb25c575b22f060f50f4d2382de6473dec83ad2ce (diff)
downloadqt-creator-cb35594800a2f6d567ba78b8ed329f5eff8dfacd.tar.gz
TextEditor: Centralize settings connections setup
All editors did that manually, with varying approaches. Connect once when the document is made known to the EditorWidget instead. Change-Id: Ib0828b08158539859f6f89c8080435a027aa06ed Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorfactory.cpp')
-rw-r--r--src/plugins/pythoneditor/pythoneditorfactory.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorfactory.cpp b/src/plugins/pythoneditor/pythoneditorfactory.cpp
index 25089e6fb0..af4d0bd9fe 100644
--- a/src/plugins/pythoneditor/pythoneditorfactory.cpp
+++ b/src/plugins/pythoneditor/pythoneditorfactory.cpp
@@ -36,9 +36,6 @@
#include <coreplugin/icore.h>
#include <coreplugin/editormanager/editormanager.h>
#include <texteditor/texteditoractionhandler.h>
-#include <texteditor/texteditorsettings.h>
-
-#include <QDebug>
using namespace TextEditor;
@@ -64,7 +61,6 @@ Core::IEditor *EditorFactory::createEditor()
doc->setId(Constants::C_PYTHONEDITOR_ID);
doc->setIndenter(new PythonIndenter);
PythonEditorWidget *widget = new PythonEditorWidget(doc);
- TextEditor::TextEditorSettings::initializeEditor(widget);
return widget->editor();
}