diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-12 16:12:15 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 18:19:07 +0300 |
commit | 8695d8bdb15f52fdfa1a5df1da83b18c4486a9d8 (patch) | |
tree | 7ce48bcaa08089351620b155c408ca32d59907a3 /qt-models/divelocationmodel.h | |
parent | afde4dce0dc89e4ac7edbbffd5dd68a9ce96c5f1 (diff) | |
download | subsurface-8695d8bdb15f52fdfa1a5df1da83b18c4486a9d8.tar.gz |
Dive sites: show dives at selected dive sites
When in dive site tab and some dive sites are selected, show only
dives at those sites. Simply read the selection and pass it to the
filter.
Start and stop filtering when switching to and from the tab,
respectively.
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, 1 insertions, 1 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h index 914672725..a42354737 100644 --- a/qt-models/divelocationmodel.h +++ b/qt-models/divelocationmodel.h @@ -41,7 +41,6 @@ public slots: class DiveSiteSortedModel : public QSortFilterProxyModel { Q_OBJECT 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; @@ -54,6 +53,7 @@ public: DiveSiteSortedModel(); QStringList allSiteNames() const; void setFilter(const QString &text); + struct dive_site *getDiveSite(const QModelIndex &idx); }; // To access only divesites at the given GPS coordinates with the exception of a given dive site |