Add functionality to show progress for the application in task bar/dock.

Move the API to the progress manager.
Added a first Mac implementation, other
platforms are pending.
This commit is contained in:
con
2009-11-26 15:51:10 +01:00
parent 4688634f78
commit 90c03d3209
21 changed files with 311 additions and 73 deletions

View File

@@ -37,10 +37,6 @@
#include <QtGui/QPixmap>
#include <QtDebug>
#ifdef Q_OS_MAC
#include "buildprogress_mac.h"
#endif
using namespace ProjectExplorer;
using namespace ProjectExplorer::Internal;
@@ -98,10 +94,4 @@ 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
}