aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-02-04 16:46:03 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:29 +0100
commit0bc0b6bfe8666744611f8afa775a58b95e686652 (patch)
treec5e1d70743c0c842759c827e46a6267d004c9541 /qt-models/divelistmodel.h
parentf1bb2c847896689a5e70b6f423b1cfdc923824de (diff)
downloadsubsurface-0bc0b6bfe8666744611f8afa775a58b95e686652.tar.gz
Mobile/filtering: first attempt to filter on dive site
[Dirk Hohndel: this is the starting point of my following commits, I decided to leave it in place to give Jan credit for the work he did on figuring out some of the plumbing needed to get things to work] Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r--qt-models/divelistmodel.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index d7988f2d9..2773ce33d 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -17,6 +17,8 @@ public:
public slots:
int getDiveId(int idx);
int getIdxForId(int id);
+ void setFilter(QString f);
+ void resetFilter();
};
class DiveListModel : public QAbstractListModel
@@ -26,7 +28,8 @@ public:
enum DiveListRoles {
DiveRole = Qt::UserRole + 1,
- DiveDateRole
+ DiveDateRole,
+ DiveSiteRole
};
static DiveListModel *instance();