diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-03-24 17:11:29 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 22fe0c14e885161ae9a18a00b71283a77679d06c (patch) | |
tree | ca8c6bff95de31442b72a400d2c4a26190cc4606 /qt-models/divelocationmodel.h | |
parent | 9afea37e15db29f59048d1bc2553838943ca1b62 (diff) | |
download | subsurface-22fe0c14e885161ae9a18a00b71283a77679d06c.tar.gz |
Dive sites: add fulltext filter
In the dive site tab, add a fulltext filter. The UI is only a mock up.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r-- | qt-models/divelocationmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h index 9f1c4468b..ca74ad791 100644 --- a/qt-models/divelocationmodel.h +++ b/qt-models/divelocationmodel.h @@ -44,6 +44,7 @@ private: struct dive_site *getDiveSite(const QModelIndex &idx); bool filterAcceptsRow(int sourceRow, const QModelIndex &source_parent) const override; bool lessThan(const QModelIndex &i1, const QModelIndex &i2) const override; + QString fullText; #ifndef SUBSURFACE_MOBILE bool setData(const QModelIndex &index, const QVariant &value, int role) override; public slots: @@ -52,6 +53,7 @@ public slots: public: DiveSiteSortedModel(); QStringList allSiteNames() const; + void setFilter(const QString &text); }; // To access only divesites at the given GPS coordinates with the exception of a given dive site |