mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9afea37e15
commit
22fe0c14e8
5 changed files with 34 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue