mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: autocomplete location names
Add the capability to select the location name from a list, constructed from the known dive sites in the logbook. Fixes: #546 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
ba773c811f
commit
64704d6e5a
4 changed files with 26 additions and 5 deletions
|
@ -35,6 +35,7 @@ Item {
|
|||
property alias divemasterModel: divemasterBox.model
|
||||
property alias buddyModel: buddyBox.model
|
||||
property alias cylinderModel: cylinderBox.model
|
||||
property alias locationModel: txtLocation.model
|
||||
property int rating
|
||||
property int visibility
|
||||
|
||||
|
@ -105,12 +106,12 @@ Item {
|
|||
text: qsTr("Location:")
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
}
|
||||
Controls.TextField {
|
||||
id: txtLocation;
|
||||
HintsTextEdit {
|
||||
id: txtLocation
|
||||
model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ?
|
||||
diveDetailsListView.currentItem.modelData.dive.locationList : null
|
||||
inputMethodHints: Qt.ImhNoPredictiveText
|
||||
Layout.fillWidth: true
|
||||
onEditingFinished: {
|
||||
focus = false
|
||||
}
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue