summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-27 12:26:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-27 12:26:51 -0700
commit4b29cc21fb0c52a0c87b6efc94cbc869567228c9 (patch)
tree2129ee66ea96fd8b840517c6e50f8fa2864c776d /qt-mobile
parent16c6ff008916c81c2b72d54fb7993b78ed590617 (diff)
downloadsubsurface-4b29cc21fb0c52a0c87b6efc94cbc869567228c9.tar.gz
QML UI: show dive number and date in the detail view
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/DiveDetails.qml11
-rw-r--r--qt-mobile/DiveList.qml2
2 files changed, 11 insertions, 2 deletions
diff --git a/qt-mobile/DiveDetails.qml b/qt-mobile/DiveDetails.qml
index 5f25d817d..64b7398cc 100644
--- a/qt-mobile/DiveDetails.qml
+++ b/qt-mobile/DiveDetails.qml
@@ -18,6 +18,8 @@ Item {
property string buddy
property string divemaster;
property string notes;
+ property string date
+ property string number
onDive_idChanged: {
qmlProfile.diveId = dive_id
@@ -78,11 +80,16 @@ Item {
id: editorDetails
width: parent.width
columns: 2
- Text { }
+ Text {
+ Layout.columnSpan: 2
+ Layout.alignment: Qt.AlignHCenter
+ text: "Dive " + number + " (" + date + ")"; font.bold: true
+ }
QMLProfile {
+ Layout.columnSpan: 2
+ Layout.fillWidth: true
id: qmlProfile
height: 500
- Layout.fillWidth: true
}
Text { text: "Location:"; font.bold: true }
TextField { id: txtLocation; text: location; Layout.fillWidth: true }
diff --git a/qt-mobile/DiveList.qml b/qt-mobile/DiveList.qml
index 52cdc20f5..acf123011 100644
--- a/qt-mobile/DiveList.qml
+++ b/qt-mobile/DiveList.qml
@@ -40,6 +40,8 @@ Rectangle {
detailsWindow.watertemp = watertemp
detailsWindow.divemaster = divemaster
detailsWindow.notes = notes
+ detailsWindow.number = diveNumber
+ detailsWindow.date = date
stackView.push(detailsWindow)
}
}