summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-22 23:28:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-11-23 13:22:24 -0800
commit1ebf5a99ed934d4cf5af937b638647d5c5c83e6d (patch)
treef8b6bc3098089b1ee8d41905b683565c84772457 /qt-models/divelistmodel.h
parent70897dd1b7d33f3d1f6b47acc587a7f33a176a04 (diff)
downloadsubsurface-1ebf5a99ed934d4cf5af937b638647d5c5c83e6d.tar.gz
Filter: use hidden_by_filter also on mobile
Desktop used the hidden_in_filter flag in struct dive, mobile used its own vector plus a new showndives member in struct dive_trip. Unifiy these to use the same core-facility, viz. hidden_by_filter. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r--qt-models/divelistmodel.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 0c393bc2d..64d1e7ddc 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -24,11 +24,9 @@ public slots:
void setFilter(QString f);
void resetFilter();
int shown();
- void updateDivesShownInTrips();
protected:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
private:
- std::vector<unsigned char> filteredRows; // using unsigned char because using 'bool' turns this into a bitfield
QString filterString;
void updateFilterState();
};