forked from qt-creator/qt-creator
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7a9cc3499e
commit
5646480f27
@@ -187,7 +187,7 @@ void DesignMode::currentEditorChanged(IEditor *editor)
|
||||
}
|
||||
}
|
||||
if (d->m_currentEditor)
|
||||
disconnect(d->m_currentEditor.data()->document(), SIGNAL(changed()), this, SLOT(updateActions()));
|
||||
disconnect(d->m_currentEditor.data()->document(), &IDocument::changed, this, &DesignMode::updateActions);
|
||||
|
||||
if (!mimeEditorAvailable) {
|
||||
setActiveContext(Context());
|
||||
@@ -200,7 +200,7 @@ void DesignMode::currentEditorChanged(IEditor *editor)
|
||||
d->m_currentEditor = editor;
|
||||
|
||||
if (d->m_currentEditor)
|
||||
connect(d->m_currentEditor.data()->document(), SIGNAL(changed()), this, SLOT(updateActions()));
|
||||
connect(d->m_currentEditor.data()->document(), &IDocument::changed, this, &DesignMode::updateActions);
|
||||
|
||||
emit actionsUpdated(d->m_currentEditor.data());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user