forked from qt-creator/qt-creator
CppTools: Improve clang diagnostic configuration UI
...by clarifying the widget hierarchy. Ensure that the combo box at the top is perceived as the main widget: * Remove the "Configuration to use:" label so the combo box gets more horizontal space and thus dominance. Also, rename the group box header/label from "Clang Diagnostic Warnigns" to "Clang Diagnostic Configuration". * Move the command line text edit below the combo box into its own tab page to clarify the relation to the tidy/clazy tabs. Change-Id: I97a0785678e33b94746046d07a911422b1469890 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -41,6 +41,7 @@ namespace CppTools {
|
||||
|
||||
namespace Ui {
|
||||
class ClangDiagnosticConfigsWidget;
|
||||
class ClangBaseChecks;
|
||||
class ClazyChecks;
|
||||
class TidyChecks;
|
||||
}
|
||||
@@ -67,7 +68,7 @@ signals:
|
||||
void customConfigsChanged(const CppTools::ClangDiagnosticConfigs &customConfigs);
|
||||
|
||||
private:
|
||||
void setupPluginsWidgets();
|
||||
void setupTabs();
|
||||
|
||||
void onCurrentConfigChanged(int);
|
||||
void onCopyButtonClicked();
|
||||
@@ -104,6 +105,9 @@ private:
|
||||
ClangDiagnosticConfigsModel m_diagnosticConfigsModel;
|
||||
QHash<Core::Id, QString> m_notAcceptedOptions;
|
||||
|
||||
std::unique_ptr<CppTools::Ui::ClangBaseChecks> m_clangBaseChecks;
|
||||
QWidget *m_clangBaseChecksWidget = nullptr;
|
||||
|
||||
std::unique_ptr<CppTools::Ui::ClazyChecks> m_clazyChecks;
|
||||
QWidget *m_clazyChecksWidget = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user