diff --git a/src/plugins/clangtools/clazychecks.ui b/src/plugins/clangtools/clazychecks.ui index 57ad02422e0..0818b8d31e8 100644 --- a/src/plugins/clangtools/clazychecks.ui +++ b/src/plugins/clangtools/clazychecks.ui @@ -127,42 +127,15 @@ - - - - - Icon - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - Could not query the supported checks from the clazy-standalone executable. + + + Could not query the supported checks from the clazy-standalone executable. Set a valid executable first. - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + @@ -183,6 +156,13 @@ Set a valid executable first. + + + Utils::InfoLabel + QLabel +
utils/infolabel.h
+
+
diff --git a/src/plugins/clangtools/diagnosticconfigswidget.cpp b/src/plugins/clangtools/diagnosticconfigswidget.cpp index b6591820d12..986d7f9ac41 100644 --- a/src/plugins/clangtools/diagnosticconfigswidget.cpp +++ b/src/plugins/clangtools/diagnosticconfigswidget.cpp @@ -35,7 +35,6 @@ #include #include -#include #include #include @@ -709,7 +708,8 @@ DiagnosticConfigsWidget::DiagnosticConfigsWidget(const ClangDiagnosticConfigs &c m_clazyChecks = std::make_unique(); m_clazyChecksWidget = new QWidget(); m_clazyChecks->setupUi(m_clazyChecksWidget); - m_clazyChecks->invalidExecutableIcon->setPixmap(Utils::Icons::WARNING.pixmap()); + m_clazyChecks->invalidExecutableLabel->setType(Utils::InfoLabel::Warning); + m_clazyChecks->invalidExecutableLabel->setElideMode(Qt::ElideNone); m_clazySortFilterProxyModel = new ClazyChecksSortFilterModel(this); m_clazySortFilterProxyModel->setSourceModel(m_clazyTreeModel.get()); setupTreeView(m_clazyChecks->checksView, m_clazySortFilterProxyModel, 2); @@ -752,7 +752,8 @@ DiagnosticConfigsWidget::DiagnosticConfigsWidget(const ClangDiagnosticConfigs &c m_tidyChecks = std::make_unique(); m_tidyChecksWidget = new QWidget(); m_tidyChecks->setupUi(m_tidyChecksWidget); - m_tidyChecks->invalidExecutableIcon->setPixmap(Utils::Icons::WARNING.pixmap()); + m_tidyChecks->invalidExecutableLabel->setType(Utils::InfoLabel::Warning); + m_tidyChecks->invalidExecutableLabel->setElideMode(Qt::ElideNone); setupTreeView(m_tidyChecks->checksPrefixesTree, m_tidyTreeModel.get()); connect(m_tidyChecks->checksPrefixesTree, diff --git a/src/plugins/clangtools/tidychecks.ui b/src/plugins/clangtools/tidychecks.ui index f98c7eec7b1..5acdc1682f3 100644 --- a/src/plugins/clangtools/tidychecks.ui +++ b/src/plugins/clangtools/tidychecks.ui @@ -129,39 +129,15 @@ 0 - - - - - Icon - - - - - - - Could not query the supported checks from the clang-tidy executable. + + + Could not query the supported checks from the clang-tidy executable. Set a valid executable first. - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + @@ -182,6 +158,13 @@ Set a valid executable first. + + + Utils::InfoLabel + QLabel +
utils/infolabel.h
+
+