mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3e05d61eb9
commit
446dfed6e7
3 changed files with 54 additions and 63 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue