aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/main.qml7
-rw-r--r--qt-mobile/qmlmanager.cpp5
-rw-r--r--qt-mobile/qmlmanager.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml
index d22710ea4..3e18cbc68 100644
--- a/qt-mobile/qml/main.qml
+++ b/qt-mobile/qml/main.qml
@@ -80,6 +80,13 @@ ApplicationWindow {
}
MenuItem {
+ text: "Apply GPS data to dives"
+ onTriggered: {
+ manager.applyGpsData();
+ }
+ }
+
+ MenuItem {
text: "View Log"
onTriggered: {
stackView.push(logWindow)
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index ad8f1e259..68f22fdc1 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -147,6 +147,11 @@ void QMLManager::addDive()
DiveListModel::instance()->startAddDive();
}
+void QMLManager::applyGpsData()
+{
+ locationProvider->applyLocations();
+}
+
QString QMLManager::logText() const
{
return m_logText;
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h
index 99e83c277..8c42b15ef 100644
--- a/qt-mobile/qmlmanager.h
+++ b/qt-mobile/qmlmanager.h
@@ -42,6 +42,7 @@ public slots:
void commitChanges(QString diveId, QString suit, QString buddy, QString diveMaster, QString notes);
void saveChanges();
void addDive();
+ void applyGpsData();
private:
QString m_cloudUserName;