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