diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-12-18 10:30:00 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2015-12-18 11:54:16 +0000 |
commit | 0f8a3abb8b35d063e805ec99eecdf0b21ae19303 (patch) | |
tree | 0cce8bc11399e607404ddaab2e74e8ced4232677 /src/plugins | |
parent | 9d3b2f09986ef23afc9907c60acc9331697225ea (diff) |
TextEditor: Rename slotCodeStyleRemoved and make it private
Change-Id: I70f3ef86faa3c7c4e55bdd524c6a17cdb13c8fc1
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/texteditor/icodestylepreferences.cpp | 6 | ||||
-rw-r--r-- | src/plugins/texteditor/icodestylepreferences.h | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/texteditor/icodestylepreferences.cpp b/src/plugins/texteditor/icodestylepreferences.cpp index ed475cec93..db30d92ae5 100644 --- a/src/plugins/texteditor/icodestylepreferences.cpp +++ b/src/plugins/texteditor/icodestylepreferences.cpp @@ -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(); diff --git a/src/plugins/texteditor/icodestylepreferences.h b/src/plugins/texteditor/icodestylepreferences.h index c8cfebc845..fa9a421cc7 100644 --- a/src/plugins/texteditor/icodestylepreferences.h +++ b/src/plugins/texteditor/icodestylepreferences.h @@ -103,9 +103,10 @@ signals: protected: virtual QString settingsSuffix() const = 0; - void slotCodeStyleRemoved(ICodeStylePreferences *preferences); private: + void codeStyleRemoved(ICodeStylePreferences *preferences); + Internal::ICodeStylePreferencesPrivate *d; }; |