Issues pane: Show the right number of issues on the pane button

While we do want to show contextual messages from the compiler, the
number displayed on the button should correspond to the actual number of
issues (i.e. errors or warnings), and should not include the notes
around them.
We used to do this correctly, but broke it in acd0d02e28.

Fixes: QTCREATORBUG-18490
Change-Id: Ib6b36f24b4f6bfe53ed5b977f0f88586c4d95b16
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2019-07-04 17:10:19 +02:00
parent 1df6443d4a
commit 163d5c5ce8
3 changed files with 25 additions and 5 deletions

View File

@@ -140,6 +140,7 @@ public:
void setFilteredCategories(const QList<Core::Id> &categoryIds) { m_categoryIds = categoryIds; invalidateFilter(); }
Task task(const QModelIndex &index) const { return taskModel()->task(mapToSource(index)); }
int issuesCount(int startRow, int endRow) const;
bool hasFile(const QModelIndex &index) const
{ return taskModel()->hasFile(mapToSource(index)); }