aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/buildprogress.cpp
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-02-26 16:52:55 +0100
committerJens Bache-Wiig <jbache@trolltech.com>2010-02-26 16:52:55 +0100
commit414933d6cdfac453c1ab0d3c9354066a2a59d793 (patch)
treec79c8c3025dec94159ff7e1845c79acaf61ec3dc /src/plugins/projectexplorer/buildprogress.cpp
parent49100862771bf174512fe9f50651b2c768d9e87f (diff)
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.
Diffstat (limited to 'src/plugins/projectexplorer/buildprogress.cpp')
-rw-r--r--src/plugins/projectexplorer/buildprogress.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp
index 9b38cb89f2..6513097ec9 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);
}