From cb35594800a2f6d567ba78b8ed329f5eff8dfacd Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 19 Aug 2014 12:12:45 +0200 Subject: 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 --- src/plugins/pythoneditor/pythoneditorfactory.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/plugins/pythoneditor/pythoneditorfactory.cpp') 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 #include #include -#include - -#include 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(); } -- cgit v1.2.1