mobile: get GPS data from dive site name

When the user entered a dive site using autocompletion, it
is a known site, of which we might have a GPS location already.
Just fill the known site coordinates.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-11-22 19:22:02 +01:00 committed by Dirk Hohndel
parent 64704d6e5a
commit 806c7077f2
3 changed files with 16 additions and 0 deletions

View file

@ -112,6 +112,9 @@ Item {
diveDetailsListView.currentItem.modelData.dive.locationList : null
inputMethodHints: Qt.ImhNoPredictiveText
Layout.fillWidth: true
onEditingFinished: {
gpsText = manager.getGpsFromSiteName(text)
}
}
Controls.Label {