mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
441ced45f5
commit
7b06c35cb5
4 changed files with 52 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue