diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-10-24 21:21:38 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-25 23:24:22 +0100 |
commit | c5fb66e775092661fe3dd363794d80a9d49cfdff (patch) | |
tree | 13162bef53bccf79f061fe099b8a2a48851c3288 /qt-models/divelistmodel.h | |
parent | 89a242976fc29ca974f5c3a390ce8519416ea718 (diff) | |
download | subsurface-c5fb66e775092661fe3dd363794d80a9d49cfdff.tar.gz |
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>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r-- | qt-models/divelistmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index dcfc573ee..05c3b76ff 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -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: |