summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2016-02-13 18:34:31 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-13 10:04:05 -0800
commitae116c5bc80f152f4eb5061252f52e70903398c6 (patch)
tree0d52f673e387b6e47f7c93757e990a1750e19c25 /qt-mobile/qml/DiveDetails.qml
parent8cc4463a1af4bbce2dd5ea61d6ab8a5b107fb3b7 (diff)
downloadsubsurface-ae116c5bc80f152f4eb5061252f52e70903398c6.tar.gz
QML UI: enable edit of gasmix
First cylinder only, show warning if there are more than one cylinder defined. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 5a39576e8..c906ba268 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -24,6 +24,7 @@ MobileComponents.Page {
property alias weight: detailsEdit.weightText
property alias startpressure: detailsEdit.startpressureText
property alias endpressure: detailsEdit.endpressureText
+ property alias gasmix: detailsEdit.gasmixText
state: "view"
@@ -128,10 +129,12 @@ MobileComponents.Page {
if (diveDetailsListView.currentItem.modelData.dive.getCylinder != "Multiple" ) {
startpressure = diveDetailsListView.currentItem.modelData.dive.startPressure
endpressure = diveDetailsListView.currentItem.modelData.dive.endPressure
+ gasmix = diveDetailsListView.currentItem.modelData.dive.firstGas
} else {
// careful when translating, this text is "magic" in DiveDetailsEdit.qml
startpressure = "cannot edit multiple cylinders"
endpressure = "cannot edit multiple cylinders"
+ gasmix = "cannot edit multiple gases"
}
diveDetailsPage.state = "edit"