forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -101,16 +101,10 @@ void CppCodeModelSettingsWidget::setupPluginsWidgets()
|
|||||||
m_tidyChecksWidget = new QWidget();
|
m_tidyChecksWidget = new QWidget();
|
||||||
m_tidyChecks->setupUi(m_tidyChecksWidget);
|
m_tidyChecks->setupUi(m_tidyChecksWidget);
|
||||||
|
|
||||||
m_ui->pluginChecks->addWidget(m_tidyChecksWidget);
|
m_ui->pluginChecks->addTab(m_tidyChecksWidget, tr("ClangTidy"));
|
||||||
m_ui->pluginChecks->addWidget(m_clazyChecksWidget);
|
m_ui->pluginChecks->addTab(m_clazyChecksWidget, tr("Clazy"));
|
||||||
m_ui->pluginChecks->setCurrentIndex(0);
|
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();
|
setupTidyChecks();
|
||||||
setupClazyChecks();
|
setupClazyChecks();
|
||||||
}
|
}
|
||||||
|
@@ -121,27 +121,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="pluginSelection">
|
<widget class="QTabWidget" name="pluginChecks"/>
|
||||||
<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"/>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Reference in New Issue
Block a user