From 414933d6cdfac453c1ab0d3c9354066a2a59d793 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig Date: Fri, 26 Feb 2010 16:52:55 +0100 Subject: [PATCH] Hide warning and error icons when not needed This should make the build bar a bit more minimal. You can still click the panel to access the results so no functionality is lost. --- src/plugins/projectexplorer/buildprogress.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp index 9b38cb89f22..6513097ec9a 100644 --- a/src/plugins/projectexplorer/buildprogress.cpp +++ b/src/plugins/projectexplorer/buildprogress.cpp @@ -76,6 +76,8 @@ BuildProgress::BuildProgress(TaskWindow *taskWindow) m_errorIcon->setPixmap(QPixmap(":/projectexplorer/images/compile_error.png")); m_warningIcon->setPixmap(QPixmap(":/projectexplorer/images/compile_warning.png")); + hide(); + connect(m_taskWindow, SIGNAL(tasksChanged()), this, SLOT(updateState())); updateState(); } @@ -94,4 +96,11 @@ void BuildProgress::updateState() m_warningIcon->setEnabled(haveWarnings); m_warningLabel->setEnabled(haveWarnings); m_warningLabel->setText(QString("%1").arg(warnings)); + + // Hide warnings and errors unless you need them + setVisible(haveWarnings | haveErrors); + m_warningIcon->setVisible(haveWarnings); + m_warningLabel->setVisible(haveWarnings); + m_errorIcon->setVisible(haveErrors); + m_errorLabel->setVisible(haveErrors); }