forked from qt-creator/qt-creator
TextEditor: Rename slotCodeStyleRemoved and make it private
Change-Id: I70f3ef86faa3c7c4e55bdd524c6a17cdb13c8fc1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9d3b2f0998
commit
0f8a3abb8b
@@ -152,12 +152,12 @@ void ICodeStylePreferences::setDelegatingPool(CodeStylePool *pool)
|
||||
setCurrentDelegate(0);
|
||||
if (d->m_pool) {
|
||||
disconnect(d->m_pool, &CodeStylePool::codeStyleRemoved,
|
||||
this, &ICodeStylePreferences::slotCodeStyleRemoved);
|
||||
this, &ICodeStylePreferences::codeStyleRemoved);
|
||||
}
|
||||
d->m_pool = pool;
|
||||
if (d->m_pool) {
|
||||
connect(d->m_pool, &CodeStylePool::codeStyleRemoved,
|
||||
this, &ICodeStylePreferences::slotCodeStyleRemoved);
|
||||
this, &ICodeStylePreferences::codeStyleRemoved);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ void ICodeStylePreferences::fromMap(const QString &prefix, const QVariantMap &ma
|
||||
}
|
||||
}
|
||||
|
||||
void ICodeStylePreferences::slotCodeStyleRemoved(ICodeStylePreferences *preferences)
|
||||
void ICodeStylePreferences::codeStyleRemoved(ICodeStylePreferences *preferences)
|
||||
{
|
||||
if (currentDelegate() == preferences) {
|
||||
CodeStylePool *pool = delegatingPool();
|
||||
|
||||
Reference in New Issue
Block a user