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