QML UI: fix saving fields using HintsTextEdit

The editText property is not there anymore, we need text

Signed-off-by: Marco Martin <notmart@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Marco Martin 2017-04-04 21:49:02 +02:00 committed by Dirk Hohndel
parent 89d7dd4348
commit 8a71196e4e
2 changed files with 4 additions and 3 deletions

View file

@ -34,9 +34,9 @@ Item {
function saveData() { function saveData() {
// apply the changes to the dive_table // apply the changes to the dive_table
manager.commitChanges(dive_id, detailsEdit.dateText, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText, manager.commitChanges(dive_id, detailsEdit.dateText, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText,
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, suitBox.editText, buddyBox.editText, detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, suitBox.text, buddyBox.text,
divemasterBox.editText, detailsEdit.weightText, detailsEdit.notesText, detailsEdit.startpressureText, divemasterBox.text, detailsEdit.weightText, detailsEdit.notesText, detailsEdit.startpressureText,
detailsEdit.endpressureText, detailsEdit.gasmixText, cylinderBox.editText) detailsEdit.endpressureText, detailsEdit.gasmixText, cylinderBox.text)
// trigger the profile to be redrawn // trigger the profile to be redrawn
QMLProfile.diveId = dive_id QMLProfile.diveId = dive_id

View file

@ -100,6 +100,7 @@ TextField {
onClicked: { onClicked: {
hintsView.currentIndex = index hintsView.currentIndex = index
root.text = modelData root.text = modelData
frame.shouldShow = false;
} }
} }
ScrollBar.vertical: ScrollBar { } ScrollBar.vertical: ScrollBar { }