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>
This commit is contained in:
Berthold Stoeger 2019-04-29 08:17:41 +02:00 committed by Dirk Hohndel
parent 23cf85e89c
commit 3e05d61eb9
3 changed files with 19 additions and 2 deletions

View file

@ -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();