summaryrefslogtreecommitdiffstats
path: root/qt-models/filtermodels.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-04-29 08:17:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-11 12:06:19 -0700
commit3e05d61eb95f5b26d0382ff87451cbe5b59fc9ec (patch)
tree949ea9b51606012cd1fa1da2a629cce464f92e49 /qt-models/filtermodels.h
parent23cf85e89c7f09281bedd7e704c867049c84cbe8 (diff)
downloadsubsurface-3e05d61eb95f5b26d0382ff87451cbe5b59fc9ec.tar.gz
Map: show all dive sites when in dive-site filter mode
When on the dive site tab or editing a dive site, we want to show all dive sites so that the user can related different dive sites. Therefore export a "in dive site mode" flag from the filter model and don't filter in that case in MapWidgetHelper. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/filtermodels.h')
-rw-r--r--qt-models/filtermodels.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/filtermodels.h b/qt-models/filtermodels.h
index 258b4186b..7520fbe16 100644
--- a/qt-models/filtermodels.h
+++ b/qt-models/filtermodels.h
@@ -63,6 +63,7 @@ public:
bool updateDive(struct dive *d); // returns true if visibility status changed
int divesDisplayed;
bool lessThan(const QModelIndex &, const QModelIndex &) const override;
+ bool diveSiteMode() const; // returns true if we're filtering on dive site
public
slots:
void myInvalidate();