summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-01 23:33:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-11 12:06:19 -0700
commit446dfed6e72971ed91df9378bd5b7b34c90b690a (patch)
tree92a3c82faccf42af3e69591a0fabdbe00b4f4b5e /qt-models/maplocationmodel.h
parent3e05d61eb95f5b26d0382ff87451cbe5b59fc9ec (diff)
downloadsubsurface-446dfed6e72971ed91df9378bd5b7b34c90b690a.tar.gz
Map: move calculation of list from map-helper to map-model
The map model keeps track of the dive site positions on the map. Therefore, it seems more logical to have the code calculating the map position in the model, not in the helper-class. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r--qt-models/maplocationmodel.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h
index 70f247f33..6c28c6c99 100644
--- a/qt-models/maplocationmodel.h
+++ b/qt-models/maplocationmodel.h
@@ -61,8 +61,7 @@ public:
int rowCount(const QModelIndex &parent) const override;
int count();
void add(MapLocation *);
- void addList(QVector<MapLocation *>);
- void clear();
+ void reload();
MapLocation *getMapLocation(const struct dive_site *ds);
void updateMapLocationCoordinates(const struct dive_site *ds, QGeoCoordinate coord);
Q_INVOKABLE void setSelected(struct dive_site *ds, bool fromClick = true);