mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Filter: reload only when checkstate changed
Currently, the filter is recalculated if a filter-entry is changed. This also happens if the counts of a filter-entry changes. This is to be avoided, as it causes unnecessary churn. Therefore, send the proper role with the dataChanged() signal and add a new slot, which invalidates only if a field with the Qt::CheckStateRole is changed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7150d1c6f6
commit
e0fcf99d0a
2 changed files with 11 additions and 2 deletions
|
|
@ -131,6 +131,7 @@ slots:
|
|||
void clearFilter();
|
||||
void startFilterDiveSite(uint32_t uuid);
|
||||
void stopFilterDiveSite();
|
||||
void filterChanged(const QModelIndex &from, const QModelIndex &to, const QVector<int> &roles);
|
||||
|
||||
signals:
|
||||
void filterFinished();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue