forked from qt-creator/qt-creator
ClangTools: Add clear button to toolbar
Change-Id: I0caeb3fa118b57084f7df7a22952f3057ca601e0 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -90,6 +90,12 @@ int ClangToolsDiagnosticModel::diagnosticsCount() const
|
||||
return rootItem()->childCount();
|
||||
}
|
||||
|
||||
void ClangToolsDiagnosticModel::clear()
|
||||
{
|
||||
clearAndSetupCache();
|
||||
Utils::TreeModel<>::clear();
|
||||
}
|
||||
|
||||
void ClangToolsDiagnosticModel::updateItems(const DiagnosticItem *changedItem)
|
||||
{
|
||||
for (auto item : stepsToItemsCache[changedItem->diagnostic().explainingSteps]) {
|
||||
|
||||
Reference in New Issue
Block a user