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>
This commit is contained in:
Dirk Hohndel 2016-01-01 17:23:29 -08:00
parent 14a09689a4
commit fa338a26b8
3 changed files with 37 additions and 6 deletions

View file

@ -82,6 +82,7 @@ public slots:
void showMap(QString location);
QString getNumber(QString diveId);
QString getDate(QString diveId);
QString getCurrentPosition();
private:
QString m_cloudUserName;