Mobile/filtering: update nr of dives shown in a trip when filtering

Whenever the filter changes, simply walk the filtered dive list and ensure
that we have the correct count for dives that match this filter.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-10-24 21:21:38 +01:00
parent 89a242976f
commit c5fb66e775
2 changed files with 22 additions and 0 deletions

View file

@ -21,6 +21,7 @@ public slots:
void setFilter(QString f);
void resetFilter();
int shown();
void updateDivesShownInTrips();
protected:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
private: