diff options
author | con <qtc-committer@nokia.com> | 2009-11-24 18:20:06 +0100 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2009-11-24 18:20:06 +0100 |
commit | 5672a225d346454d8386bcc7e50f75d5e1fcdbda (patch) | |
tree | 84b0902b70586d5f07bf04745ef80eb687b50cb0 /src/plugins/projectexplorer/buildprogress.cpp | |
parent | 11d298d57dc3c9a07eae92f4fa7c73ec9cc15842 (diff) |
Mac OS X: Show build error count in Dock icon.
Mac OS X >= Leopard only.
Task-number: QTCREATORBUG-356
Diffstat (limited to 'src/plugins/projectexplorer/buildprogress.cpp')
-rw-r--r-- | src/plugins/projectexplorer/buildprogress.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp index c97ce2c87a..906a366634 100644 --- a/src/plugins/projectexplorer/buildprogress.cpp +++ b/src/plugins/projectexplorer/buildprogress.cpp @@ -35,6 +35,11 @@ #include <QtGui/QHBoxLayout> #include <QtGui/QFont> #include <QtGui/QPixmap> +#include <QtDebug> + +#ifdef Q_OS_MAC +#include "buildprogress_mac.h" +#endif using namespace ProjectExplorer; using namespace ProjectExplorer::Internal; @@ -93,4 +98,10 @@ void BuildProgress::updateState() m_warningIcon->setEnabled(haveWarnings); m_warningLabel->setEnabled(haveWarnings); m_warningLabel->setText(QString("%1").arg(warnings)); +#ifdef Q_OS_MAC + if (haveErrors) + qtcShowDockTileBadgeLabel(QString("%1").arg(errors)); + else + qtcShowDockTileBadgeLabel(""); +#endif } |