forked from qt-creator/qt-creator
EditorManager: Use interface directly instead of going through ICore
In the majority of cases we were doing that anyways, having two ways is just needlessly confusing. Change-Id: Ied362a702c23beee528368d74df1f2aabe5807f8 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -206,9 +206,9 @@ public slots:
|
||||
StateListener::StateListener(QObject *parent) :
|
||||
QObject(parent)
|
||||
{
|
||||
connect(Core::ICore::editorManager(), SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||
connect(Core::EditorManager::instance(), SIGNAL(currentEditorChanged(Core::IEditor*)),
|
||||
this, SLOT(slotStateChanged()));
|
||||
connect(Core::ICore::editorManager(), SIGNAL(currentDocumentStateChanged()),
|
||||
connect(Core::EditorManager::instance(), SIGNAL(currentDocumentStateChanged()),
|
||||
this, SLOT(slotStateChanged()));
|
||||
connect(Core::ICore::vcsManager(), SIGNAL(repositoryChanged(QString)),
|
||||
this, SLOT(slotStateChanged()));
|
||||
|
||||
Reference in New Issue
Block a user