diff options
Diffstat (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml')
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 431a0e22f..4c4f8e47c 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -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 { |