Commit 8afa7a64 authored by Ivan Donchevskii's avatar Ivan Donchevskii

Clang: Plugins: Put settings into the TabWidget

Make tidy/clazy switch more intuitive.

Change-Id: I13d17376bdace039ae371693e28f6fcb0b493244
Reviewed-by: Riitta-Leena Miettinen's avatarLeena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent 508a9bdb
......@@ -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();
}
......
......@@ -121,27 +121,7 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QComboBox" name="pluginSelection">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item>
<property name="text">
<string>ClangTidy</string>
</property>
</item>
<item>
<property name="text">
<string>Clazy</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="pluginChecks"/>
<widget class="QTabWidget" name="pluginChecks"/>
</item>
</layout>
</widget>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment