summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodemodelsettingspage.cpp
diff options
context:
space:
mode:
authorIvan Donchevskii <ivan.donchevskii@qt.io>2017-12-04 10:44:52 +0100
committerIvan Donchevskii <ivan.donchevskii@qt.io>2017-12-07 13:36:51 +0000
commit8afa7a64cccf06895f46af4e7be42e45c14eb281 (patch)
tree59c843dd4689cbf2d40f8f316911741b3cdab5b1 /src/plugins/cpptools/cppcodemodelsettingspage.cpp
parent508a9bdb2460c19f0be2fb99628304f01aa12557 (diff)
downloadqt-creator-8afa7a64cccf06895f46af4e7be42e45c14eb281.tar.gz
Clang: Plugins: Put settings into the TabWidget
Make tidy/clazy switch more intuitive. Change-Id: I13d17376bdace039ae371693e28f6fcb0b493244 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcodemodelsettingspage.cpp')
-rw-r--r--src/plugins/cpptools/cppcodemodelsettingspage.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/cpptools/cppcodemodelsettingspage.cpp b/src/plugins/cpptools/cppcodemodelsettingspage.cpp
index 6ee472a614..d7f404fb03 100644
--- a/src/plugins/cpptools/cppcodemodelsettingspage.cpp
+++ b/src/plugins/cpptools/cppcodemodelsettingspage.cpp
@@ -101,16 +101,10 @@ void CppCodeModelSettingsWidget::setupPluginsWidgets()
m_tidyChecksWidget = new QWidget();
m_tidyChecks->setupUi(m_tidyChecksWidget);
- m_ui->pluginChecks->addWidget(m_tidyChecksWidget);
- m_ui->pluginChecks->addWidget(m_clazyChecksWidget);
+ m_ui->pluginChecks->addTab(m_tidyChecksWidget, tr("ClangTidy"));
+ m_ui->pluginChecks->addTab(m_clazyChecksWidget, tr("Clazy"));
m_ui->pluginChecks->setCurrentIndex(0);
- connect(m_ui->pluginSelection,
- static_cast<void (QComboBox::*)(int index)>(&QComboBox::currentIndexChanged),
- [this](int index) {
- m_ui->pluginChecks->setCurrentIndex(index);
- });
-
setupTidyChecks();
setupClazyChecks();
}