summaryrefslogtreecommitdiffstats
path: root/map-widget/qmlmapwidgethelper.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-25 20:46:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-29 00:09:31 +0000
commit75b5d61522f3721adb1761141ce1aeb79c3761c1 (patch)
treeb9cb8f62df1d7fa2210b4b2c34ef8afb879bc5c1 /map-widget/qmlmapwidgethelper.h
parent872d56de0122036e1b9d37348d758b40dcd142d9 (diff)
downloadsubsurface-75b5d61522f3721adb1761141ce1aeb79c3761c1.tar.gz
Dive site: replace UUID by pointer in mobile code
Replace UUIDs by pointers to dive-site in mobile code. In both cases, the value is transported via a QVariant. The function getCoordinatesForUUID(), which was only used from mobile, can be replaced by a getCoordinatesFor() function taking a variant supposed to contain a dive-site pointer. Likewise, the variant of the centerOnDiveSite function is now supposed to wrap a pointer-to-divesite. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'map-widget/qmlmapwidgethelper.h')
-rw-r--r--map-widget/qmlmapwidgethelper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/map-widget/qmlmapwidgethelper.h b/map-widget/qmlmapwidgethelper.h
index f0d17a28d..8fad3aed2 100644
--- a/map-widget/qmlmapwidgethelper.h
+++ b/map-widget/qmlmapwidgethelper.h
@@ -29,8 +29,8 @@ public:
void centerOnDiveSite(struct dive_site *);
void centerOnSelectedDiveSite();
- Q_INVOKABLE QGeoCoordinate getCoordinatesForUUID(QVariant dive_site_uuid);
- Q_INVOKABLE void centerOnDiveSiteUUID(QVariant dive_site_uuid);
+ Q_INVOKABLE QGeoCoordinate getCoordinates(QVariant dive_site);
+ Q_INVOKABLE void centerOnDiveSite(QVariant dive_site);
Q_INVOKABLE void reloadMapLocations();
Q_INVOKABLE void copyToClipboardCoordinates(QGeoCoordinate coord, bool formatTraditional);
Q_INVOKABLE void calculateSmallCircleRadius(QGeoCoordinate coord);