summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-08 23:18:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-08 23:18:41 -0800
commitb1f90b6aa0171cc5a5b7b5ff2f8dbc6236e23c4e (patch)
treef75d68234e4de76fcd8deaf9172f6516dbc951b0 /qt-mobile/qmlmanager.cpp
parent038cfcba911f2ae0e22ef6138042a6154578723c (diff)
downloadsubsurface-b1f90b6aa0171cc5a5b7b5ff2f8dbc6236e23c4e.tar.gz
QML UI: partial, slow and incomplete implementation of delete GPS fix
This only deletes the fix on the mobile device, not on the server. And it is really really slow. Re-reading the data from the settings just isn't a smart way to do this. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index 1d68dc3a7..df20de11d 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -528,6 +528,13 @@ void QMLManager::clearGpsData()
populateGpsData();
}
+void QMLManager::deleteGpsFix(quint64 when)
+{
+ locationProvider->deleteGpsFix(when);
+ populateGpsData();
+}
+
+
QString QMLManager::logText() const
{
QString logText = m_logText + QString("\nNumer of GPS fixes: %1").arg(locationProvider->getGpsNum());