diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-04-14 11:12:07 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-14 13:37:44 -0700 |
commit | 1d95cc4cbfb229c55580b46512c9df1c5016247e (patch) | |
tree | d517960d69d62c706578894d26785d3d1102012d /mobile-widgets/qml/DiveDetailsEdit.qml | |
parent | ca3be8f376784cedbcf9c2bf8b11d2764f82036e (diff) | |
download | subsurface-1d95cc4cbfb229c55580b46512c9df1c5016247e.tar.gz |
QML UI: if we don't have a current position, update it later
Once we get a new fix we asynchronously update the text.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 25c33b939..ef5d304d3 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -177,6 +177,12 @@ Item { gpsText = manager.getCurrentPosition() } } + Connections { + target: manager + onWaitingForPositionChanged: { + gpsText = manager.getCurrentPosition() + } + } Controls.Label { Layout.alignment: Qt.AlignRight |