aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-31 18:10:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-31 18:16:47 -0800
commit7f628404e698b930cd47258daea4a481bc744c72 (patch)
treec0b260289a8cf36d11a48146bbc5c595d6205135 /qt-mobile/qml
parentb84308bcfbc79eae2f23f2accc9e9643cbf228ce (diff)
downloadsubsurface-7f628404e698b930cd47258daea4a481bc744c72.tar.gz
QML UI: refresh UI after editing / adding a dive
This way the properties of the shown list element are updated based on what was edited. This feels weird and backwards - but it appears to be the way to do this - you literally update the elemnts in this specific instance of that QML page. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index c2fb4df1a..9d6e0b91d 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -56,6 +56,16 @@ MobileComponents.Page {
manager.commitChanges(dive_id, detailsEdit.locationText, detailsEdit.gpsText, detailsEdit.durationText,
detailsEdit.depthText, detailsEdit.airtempText, detailsEdit.watertempText, detailsEdit.suitText,
detailsEdit.buddyText, detailsEdit.divemasterText, detailsEdit.notesText)
+ location = detailsEdit.locationText
+ // gps = detailsEdit.gps
+ // duration = detailsEdit.durationText
+ // depth = detailsEdit.depthText
+ airtemp = detailsEdit.airtempText
+ watertemp = detailsEdit.watertempText
+ suit = detailsEdit.suitText
+ buddy = detailsEdit.buddyText
+ divemaster = detailsEdit.divemasterText
+ notes = detailsEdit.notesText
diveDetailsWindow.state = "view"
} else {
diveDetailsWindow.state = "edit"