aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/buildprogress.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2013-08-19 15:35:14 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-08-20 12:19:42 +0200
commitf5224a6db645a98cd8b7630e732f30f90970d8b8 (patch)
treef581925537e056ce69444b8fd0bc9231a5459cc6 /src/plugins/projectexplorer/buildprogress.cpp
parentffe0b969b6607a18c90e72014092de77da3e2453 (diff)
Task: Add a new Task category for deployment issues
These are not build system issues and deserve their own category. This has the side effect of avoiding them to get cleared when e.g. reparsing Qbs files. Change-Id: Ib949504533f7f15a560796bea91cae329f19a20b Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/buildprogress.cpp')
-rw-r--r--src/plugins/projectexplorer/buildprogress.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp
index 9a6a673a0f..a2845bfed4 100644
--- a/src/plugins/projectexplorer/buildprogress.cpp
+++ b/src/plugins/projectexplorer/buildprogress.cpp
@@ -97,14 +97,16 @@ void BuildProgress::updateState()
{
if (!m_taskWindow)
return;
- int errors = m_taskWindow->errorTaskCount(Core::Id(Constants::TASK_CATEGORY_BUILDSYSTEM))
- + m_taskWindow->errorTaskCount(Core::Id(Constants::TASK_CATEGORY_COMPILE));
+ int errors = m_taskWindow->errorTaskCount(Constants::TASK_CATEGORY_BUILDSYSTEM)
+ + m_taskWindow->errorTaskCount(Constants::TASK_CATEGORY_COMPILE)
+ + m_taskWindow->errorTaskCount(Constants::TASK_CATEGORY_DEPLOYMENT);
bool haveErrors = (errors > 0);
m_errorIcon->setEnabled(haveErrors);
m_errorLabel->setEnabled(haveErrors);
m_errorLabel->setText(QString::number(errors));
- int warnings = m_taskWindow->warningTaskCount(Core::Id(Constants::TASK_CATEGORY_BUILDSYSTEM))
- + m_taskWindow->warningTaskCount(Core::Id(Constants::TASK_CATEGORY_COMPILE));
+ int warnings = m_taskWindow->warningTaskCount(Constants::TASK_CATEGORY_BUILDSYSTEM)
+ + m_taskWindow->warningTaskCount(Constants::TASK_CATEGORY_COMPILE)
+ + m_taskWindow->warningTaskCount(Constants::TASK_CATEGORY_DEPLOYMENT);
bool haveWarnings = (warnings > 0);
m_warningIcon->setEnabled(haveWarnings);
m_warningLabel->setEnabled(haveWarnings);