diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-01 17:23:29 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-01 17:26:26 -0800 |
commit | fa338a26b8b4e390c6acc391e159dff8859dd519 (patch) | |
tree | 308b43a85884b069cc207c565a4d731097c1f421 /qt-mobile/qmlmanager.h | |
parent | 14a09689a421a32e812094b5fb99f33b99443266 (diff) | |
download | subsurface-fa338a26b8b4e390c6acc391e159dff8859dd519.tar.gz |
QML UI: add feature to add current position when editing dive
This isn't quite perfect yet. If it takes too long to get the GPS fix (i.e., if
you save it before you get the fix), this will simply fail and not store a
position. But in normal conditions (you check the box, you edit the data, you
save), especially when outside on a dive boat, this should work fine.
For the other cases we need to implement some kind of callback to still collect
the data.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlmanager.h')
-rw-r--r-- | qt-mobile/qmlmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-mobile/qmlmanager.h b/qt-mobile/qmlmanager.h index 6d019a480..097aca3a2 100644 --- a/qt-mobile/qmlmanager.h +++ b/qt-mobile/qmlmanager.h @@ -82,6 +82,7 @@ public slots: void showMap(QString location); QString getNumber(QString diveId); QString getDate(QString diveId); + QString getCurrentPosition(); private: QString m_cloudUserName; |