forked from qt-creator/qt-creator
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user