From 8a71196e4e58dfb3534fda5f00856a0223726689 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 4 Apr 2017 21:49:02 +0200 Subject: QML UI: fix saving fields using HintsTextEdit The editText property is not there anymore, we need text Signed-off-by: Marco Martin Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetailsEdit.qml | 6 +++--- mobile-widgets/qml/HintsTextEdit.qml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index c5a8318fa..6c59b5eaf 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -34,9 +34,9 @@ Item { function saveData() { // apply the changes to the dive_table manager.commitChanges(dive_id, detailsEdit.dateText, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText, - detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, suitBox.editText, buddyBox.editText, - divemasterBox.editText, detailsEdit.weightText, detailsEdit.notesText, detailsEdit.startpressureText, - detailsEdit.endpressureText, detailsEdit.gasmixText, cylinderBox.editText) + detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, suitBox.text, buddyBox.text, + divemasterBox.text, detailsEdit.weightText, detailsEdit.notesText, detailsEdit.startpressureText, + detailsEdit.endpressureText, detailsEdit.gasmixText, cylinderBox.text) // trigger the profile to be redrawn QMLProfile.diveId = dive_id diff --git a/mobile-widgets/qml/HintsTextEdit.qml b/mobile-widgets/qml/HintsTextEdit.qml index e716b9afd..b40acde2b 100644 --- a/mobile-widgets/qml/HintsTextEdit.qml +++ b/mobile-widgets/qml/HintsTextEdit.qml @@ -100,6 +100,7 @@ TextField { onClicked: { hintsView.currentIndex = index root.text = modelData + frame.shouldShow = false; } } ScrollBar.vertical: ScrollBar { } -- cgit v1.2.3-70-g09d2