diff options
author | Montel Laurent <laurent.montel@kdab.com> | 2015-01-30 11:02:24 +0100 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-01-30 10:40:25 +0000 |
commit | 063251ebbc6d896bc19fc54fe8626ae05412aae3 (patch) | |
tree | 7107c6194a184a444eb2b49984077fa2026fe7db /src/plugins/cpptools/cppcodestylesettingspage.cpp | |
parent | f1ac9cd56dcde0b8b2d533402557f792566ad703 (diff) | |
download | qt-creator-063251ebbc6d896bc19fc54fe8626ae05412aae3.tar.gz |
Port to new connect api
Change-Id: I873a36601d54065b61d0666558b93dc839ad0dfc
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodestylesettingspage.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcodestylesettingspage.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/plugins/cpptools/cppcodestylesettingspage.cpp b/src/plugins/cpptools/cppcodestylesettingspage.cpp index 63fb494d1c..787963a3fb 100644 --- a/src/plugins/cpptools/cppcodestylesettingspage.cpp +++ b/src/plugins/cpptools/cppcodestylesettingspage.cpp @@ -282,48 +282,48 @@ CppCodeStylePreferencesWidget::CppCodeStylePreferencesWidget(QWidget *parent) setVisualizeWhitespace(true); - connect(m_ui->tabSettingsWidget, SIGNAL(settingsChanged(TextEditor::TabSettings)), - this, SLOT(slotTabSettingsChanged(TextEditor::TabSettings))); - connect(m_ui->indentBlockBraces, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentBlockBody, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentClassBraces, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentNamespaceBraces, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentEnumBraces, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentNamespaceBody, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentSwitchLabels, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentCaseStatements, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentCaseBlocks, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentCaseBreak, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentAccessSpecifiers, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentDeclarationsRelativeToAccessSpecifiers, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentFunctionBody, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->indentFunctionBraces, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->extraPaddingConditions, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->alignAssignments, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->bindStarToIdentifier, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->bindStarToTypeName, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->bindStarToLeftSpecifier, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); - connect(m_ui->bindStarToRightSpecifier, SIGNAL(toggled(bool)), - this, SLOT(slotCodeStyleSettingsChanged())); + connect(m_ui->tabSettingsWidget, &TextEditor::TabSettingsWidget::settingsChanged, + this, &CppCodeStylePreferencesWidget::slotTabSettingsChanged); + connect(m_ui->indentBlockBraces, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentBlockBody, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentClassBraces, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentNamespaceBraces, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentEnumBraces, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentNamespaceBody, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentSwitchLabels, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentCaseStatements, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentCaseBlocks, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentCaseBreak, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentAccessSpecifiers, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentDeclarationsRelativeToAccessSpecifiers, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentFunctionBody, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->indentFunctionBraces, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->extraPaddingConditions, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->alignAssignments, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->bindStarToIdentifier, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->bindStarToTypeName, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->bindStarToLeftSpecifier, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); + connect(m_ui->bindStarToRightSpecifier, &QCheckBox::toggled, + this, &CppCodeStylePreferencesWidget::slotCodeStyleSettingsChanged); m_ui->categoryTab->setCurrentIndex(0); @@ -340,8 +340,8 @@ void CppCodeStylePreferencesWidget::setCodeStyle(CppTools::CppCodeStylePreferenc // code preferences m_preferences = codeStylePreferences; - connect(m_preferences, SIGNAL(currentTabSettingsChanged(TextEditor::TabSettings)), - this, SLOT(setTabSettings(TextEditor::TabSettings))); + connect(m_preferences, &CppCodeStylePreferences::currentTabSettingsChanged, + this, &CppCodeStylePreferencesWidget::setTabSettings); connect(m_preferences, SIGNAL(currentCodeStyleSettingsChanged(CppTools::CppCodeStyleSettings)), this, SLOT(setCodeStyleSettings(CppTools::CppCodeStyleSettings))); connect(m_preferences, SIGNAL(currentPreferencesChanged(TextEditor::ICodeStylePreferences*)), |