Mac OS X: Show build error count in Dock icon.

Mac OS X >= Leopard only.
Task-number: QTCREATORBUG-356
This commit is contained in:
con
2009-11-24 18:20:06 +01:00
parent 11d298d57d
commit 5672a225d3
4 changed files with 106 additions and 2 deletions

View File

@@ -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
}