summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/designmode.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-02-02 09:10:54 +0200
committerOrgad Shaneh <orgads@gmail.com>2016-02-03 07:54:02 +0000
commit5646480f27007789429c7e813423c7f142810cc3 (patch)
tree29452400aa66e2dc8b17f4ef643128aff25ba8ce /src/plugins/coreplugin/designmode.cpp
parent7a9cc3499e81185ec24ce383cefc0f6e43f00ce4 (diff)
downloadqt-creator-5646480f27007789429c7e813423c7f142810cc3.tar.gz
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/coreplugin/designmode.cpp')
-rw-r--r--src/plugins/coreplugin/designmode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/coreplugin/designmode.cpp b/src/plugins/coreplugin/designmode.cpp
index 9509eb8e2f..c2c8bbf49e 100644
--- a/src/plugins/coreplugin/designmode.cpp
+++ b/src/plugins/coreplugin/designmode.cpp
@@ -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());
}