diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/maplocationmodel.cpp | 5 | ||||
-rw-r--r-- | qt-models/maplocationmodel.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp index 90d7209f7..1e0fd9c81 100644 --- a/qt-models/maplocationmodel.cpp +++ b/qt-models/maplocationmodel.cpp @@ -110,6 +110,11 @@ void MapLocationModel::add(MapLocation *location) endInsertRows(); } +const QVector<dive_site *> &MapLocationModel::selectedDs() const +{ + return m_selectedDs; +} + void MapLocationModel::reload() { int idx; 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 |