aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
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();