diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-07-04 17:10:19 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-07-05 11:36:38 +0000 |
commit | 163d5c5ce87b4ac7dcdb7dab001538a5240ab6ef (patch) | |
tree | c209f52ecc65d37e614d4c6d93584aa1d6e1be38 /src/plugins/projectexplorer/taskmodel.h | |
parent | 1df6443d4a6e58338dfaed7d787debfaeba86756 (diff) |
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 acd0d02e282f.
Fixes: QTCREATORBUG-18490
Change-Id: Ib6b36f24b4f6bfe53ed5b977f0f88586c4d95b16
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/taskmodel.h')
-rw-r--r-- | src/plugins/projectexplorer/taskmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.h b/src/plugins/projectexplorer/taskmodel.h index b1044a3234..f605378569 100644 --- a/src/plugins/projectexplorer/taskmodel.h +++ b/src/plugins/projectexplorer/taskmodel.h @@ -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)); } |