forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -54,7 +54,6 @@
|
||||
#include <cpptools/cpptoolsconstants.h>
|
||||
#include <texteditor/texteditoractionhandler.h>
|
||||
#include <texteditor/texteditorconstants.h>
|
||||
#include <texteditor/texteditorsettings.h>
|
||||
#include <texteditor/highlighterfactory.h>
|
||||
|
||||
#include <utils/hostosinfo.h>
|
||||
@@ -130,9 +129,6 @@ CppEditorPlugin *CppEditorPlugin::instance()
|
||||
|
||||
void CppEditorPlugin::initializeEditor(CppEditorWidget *editor)
|
||||
{
|
||||
editor->setLanguageSettingsId(CppTools::Constants::CPP_SETTINGS_ID);
|
||||
TextEditor::TextEditorSettings::initializeEditor(editor);
|
||||
|
||||
// function combo box sorting
|
||||
connect(this, SIGNAL(outlineSortingChanged(bool)),
|
||||
editor->outline(), SLOT(setSorted(bool)));
|
||||
|
||||
Reference in New Issue
Block a user