aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveList.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-12-04 02:28:48 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-12-07 18:46:32 +0100
commit8cf47257424763c9eeb2a94fbc99dad36e36d937 (patch)
treee5a089fc596865a65bb55dbca554dcc13d95010b /qt-mobile/qml/DiveList.qml
parentbd7af5a511053f1ac35f9b250039aa76f9096e99 (diff)
downloadsubsurface-8cf47257424763c9eeb2a94fbc99dad36e36d937.tar.gz
split divedetails into view and edit parts
This splits the dive detail page into two modes: view and edit - The edit part loses the profile (it's not editable anyway) - The view part gets a new layout, friendlier for viewing - Properties for diveNumber, duration, depth and weight are added Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r--qt-mobile/qml/DiveList.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml
index 77e8802f0..5532ea77d 100644
--- a/qt-mobile/qml/DiveList.qml
+++ b/qt-mobile/qml/DiveList.qml
@@ -28,6 +28,10 @@ MobileComponents.Page {
detailsWindow.width = parent.width
detailsWindow.location = location
detailsWindow.dive_id = id
+ detailsWindow.diveNumber = diveNumber
+ detailsWindow.duration = duration
+ detailsWindow.depth = depth
+ detailsWindow.rating = rating
detailsWindow.buddy = buddy
detailsWindow.suit = suit
detailsWindow.airtemp = airtemp
@@ -36,6 +40,7 @@ MobileComponents.Page {
detailsWindow.notes = notes
detailsWindow.number = diveNumber
detailsWindow.date = date
+ detailsWindow.weight = weight
stackView.push(detailsWindow)
}
@@ -66,7 +71,6 @@ MobileComponents.Page {
}
}
Row {
- id: descriptionText
anchors {
left: parent.left
right: parent.right