ClangTools: Allow multi-selection in diagnostics view

This enables users to suppress or copy several issues at once.

Fixes: QTCREATORBUG-24396
Change-Id: Ib9019fd6a495b967627bf1ce53dead4d168e99da
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2020-10-01 10:27:17 +02:00
parent 751c0dbc98
commit efce9b04fc
6 changed files with 48 additions and 19 deletions

View File

@@ -538,6 +538,12 @@ void DiagnosticFilterModel::setProject(ProjectExplorer::Project *project)
handleSuppressedDiagnosticsChanged();
}
void DiagnosticFilterModel::addSuppressedDiagnostics(const SuppressedDiagnosticsList &diags)
{
m_suppressedDiagnostics << diags;
invalidate();
}
void DiagnosticFilterModel::addSuppressedDiagnostic(const SuppressedDiagnostic &diag)
{
QTC_ASSERT(!m_project, return);