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>
This commit is contained in:
Berthold Stoeger 2019-05-01 23:33:45 +02:00 committed by Dirk Hohndel
parent 3e05d61eb9
commit 446dfed6e7
3 changed files with 54 additions and 63 deletions

View file

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