From 494ad2654082d85846cb902556921ab62a6dbb14 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Sun, 28 Jan 2018 15:21:28 +0100 Subject: mobile cleanup: restyle construction of locationlist See also e6e1473e6. The construction of the locationlist was not the same as the 3 previous lists, and it needs the inclusion of a new model file (divelocationmodel.cpp) in the mobile app. In addition, as the mobile app is mainly interested in a simple stringList (model) to populate a HintsText field (or maybe later a combobox), this stringlist is added to the model, to easy interfacing with QML. Signed-off-by: Jan Mulder --- mobile-widgets/qml/DiveDetailsEdit.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mobile-widgets/qml/DiveDetailsEdit.qml') diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index c623a856f..4895ef9d1 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -129,8 +129,7 @@ Item { } HintsTextEdit { id: txtLocation - model: diveDetailsListView.currentItem && diveDetailsListView.currentItem.modelData !== null ? - diveDetailsListView.currentItem.modelData.dive.locationList : null + model: manager.locationList inputMethodHints: Qt.ImhNoPredictiveText Layout.fillWidth: true onEditingFinished: { -- cgit v1.2.3-70-g09d2