diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-03 23:16:40 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-05-11 12:06:19 -0700 |
commit | d29f82c52d604ddf65476bf382d4bbf1b5634525 (patch) | |
tree | e8a8be047551c3a58a89045a04e2a42964cba981 /qt-models/maplocationmodel.h | |
parent | b6d830f0047cf0f68d9f7564f02c6b527f5051a0 (diff) | |
download | subsurface-d29f82c52d604ddf65476bf382d4bbf1b5634525.tar.gz |
Map: make edit mode depend on dive-site-filtering
Since the dive-site-filter is active either on the dive-site-edit
page or the dive-site-list page, use that as the flag for dive-site-edit
mode. Moreover, when the filter is reset, the
MapWidgetHelper::reloadMapLocations() function is called, so we
can use that place to enter/exit edit mode.
This makes it easier to keep everything consistent.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 6f075cc84..b1b13896a 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -62,6 +62,7 @@ public: void add(MapLocation *); void reload(); MapLocation *getMapLocation(const struct dive_site *ds); + const QVector<dive_site *> &selectedDs() const; void updateMapLocationCoordinates(const struct dive_site *ds, QGeoCoordinate coord); Q_INVOKABLE void setSelected(struct dive_site *ds, bool fromClick = true); // The dive site is passed as a QVariant, because a null-QVariant is not automatically |