Add a button to quickly clear all filters, correctly emit signals in filter tree when clearing. (#5835)

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2025-04-16 14:32:57 +02:00 committed by GitHub
parent 42c56898d5
commit 67db245aea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

View file

@ -536,4 +536,5 @@ void FilterTree::clear()
while (childCount() > 0) {
deleteAt(0);
}
emit changed();
}

View file

@ -316,5 +316,7 @@ bool FilterTreeModel::removeRows(int row, int count, const QModelIndex &parent)
void FilterTreeModel::clear()
{
emit layoutAboutToBeChanged();
fTree->clear();
emit layoutChanged();
}