summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmapwidgethelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmapwidgethelper.cpp')
-rw-r--r--mobile-widgets/qmlmapwidgethelper.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmapwidgethelper.cpp b/mobile-widgets/qmlmapwidgethelper.cpp
index 5e3016f89..d308afa40 100644
--- a/mobile-widgets/qmlmapwidgethelper.cpp
+++ b/mobile-widgets/qmlmapwidgethelper.cpp
@@ -1,6 +1,18 @@
#include <QDebug>
#include "qmlmapwidgethelper.h"
+#include "core/dive.h"
+#include "core/divesite.h"
+
MapWidgetHelper::MapWidgetHelper(QObject *parent) : QObject(parent)
{
}
+
+void MapWidgetHelper::centerOnDiveSite(struct dive_site *ds)
+{
+ if (!dive_site_has_gps_location(ds))
+ return;
+
+ qreal longitude = ds->longitude.udeg / 1000000.0;
+ qreal latitude = ds->latitude.udeg / 1000000.0;
+}