mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
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:
parent
42c56898d5
commit
67db245aea
4 changed files with 11 additions and 0 deletions
|
|
@ -536,4 +536,5 @@ void FilterTree::clear()
|
|||
while (childCount() > 0) {
|
||||
deleteAt(0);
|
||||
}
|
||||
emit changed();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -316,5 +316,7 @@ bool FilterTreeModel::removeRows(int row, int count, const QModelIndex &parent)
|
|||
|
||||
void FilterTreeModel::clear()
|
||||
{
|
||||
emit layoutAboutToBeChanged();
|
||||
fTree->clear();
|
||||
emit layoutChanged();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue