Issues Pane: Fix badge number on clearing tasks of unknown type

Task-number: QTCREATORBUG-7893

Change-Id: I80870916081bc3b7464417173b74020aed40d485
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
Daniel Teske
2012-09-18 17:09:17 +02:00
parent 05be9bbdf5
commit 3e9c326968
3 changed files with 10 additions and 0 deletions

View File

@@ -70,6 +70,13 @@ int TaskModel::warningTaskCount(const Core::Id &categoryId)
return m_categories.value(categoryId).warnings;
}
int TaskModel::unknownTaskCount(const Core::Id &categoryId)
{
return m_categories.value(categoryId).count
- m_categories.value(categoryId).errors
- m_categories.value(categoryId).warnings;
}
bool TaskModel::hasFile(const QModelIndex &index) const
{
int row = index.row();