diff --git a/src/plugins/autotest/testsettingspage.cpp b/src/plugins/autotest/testsettingspage.cpp index 7292ff82db6..bcd569c8d28 100644 --- a/src/plugins/autotest/testsettingspage.cpp +++ b/src/plugins/autotest/testsettingspage.cpp @@ -43,9 +43,9 @@ TestSettingsWidget::TestSettingsWidget(QWidget *parent) { m_ui.setupUi(this); - m_ui.frameworksWarnIcon->setVisible(false); - m_ui.frameworksWarnIcon->setPixmap(Utils::Icons::WARNING.pixmap()); m_ui.frameworksWarn->setVisible(false); + m_ui.frameworksWarn->setElideMode(Qt::ElideNone); + m_ui.frameworksWarn->setType(Utils::InfoLabel::Warning); m_ui.frameworksWarn->setText(tr("No active test frameworks.")); m_ui.frameworksWarn->setToolTip(tr("You will not be able to use the AutoTest plugin without " "having at least one active test framework.")); @@ -133,13 +133,11 @@ void TestSettingsWidget::onFrameworkItemChanged() for (int row = 0, count = model->rowCount(); row < count; ++row) { if (model->index(row, 0).data(Qt::CheckStateRole) == Qt::Checked) { m_ui.frameworksWarn->setVisible(false); - m_ui.frameworksWarnIcon->setVisible(false); return; } } } m_ui.frameworksWarn->setVisible(true); - m_ui.frameworksWarnIcon->setVisible(true); } TestSettingsPage::TestSettingsPage(const QSharedPointer &settings) diff --git a/src/plugins/autotest/testsettingspage.ui b/src/plugins/autotest/testsettingspage.ui index a182708c84d..2bdbfca9bf8 100644 --- a/src/plugins/autotest/testsettingspage.ui +++ b/src/plugins/autotest/testsettingspage.ui @@ -343,24 +343,7 @@ Warning: this is an experimental feature and might lead to failing to execute th - - - 2 - - - - - - 0 - 0 - - - - - - - - + @@ -397,6 +380,13 @@ Warning: this is an experimental feature and might lead to failing to execute th + + + Utils::InfoLabel + QLabel +
utils/infolabel.h
+
+