aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetailsView.qml
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-01-19 20:12:49 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-19 07:16:49 -0800
commit1030cb265a46436a1903cdf66d88a7dd3351d3aa (patch)
tree94f4b795e730590589d97e88baeb0a56b47a1bf2 /qt-mobile/qml/DiveDetailsView.qml
parent464b88f01fed745342080af3be12c21d64f1e449 (diff)
downloadsubsurface-1030cb265a46436a1903cdf66d88a7dd3351d3aa.tar.gz
QML UI DiveDetailsView: shift dive number to right of top row
In dive details view, shifting the dive number to the right of the top row means it won't be cut short if the dive duration is 1 hr or longer Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetailsView.qml')
-rw-r--r--qt-mobile/qml/DiveDetailsView.qml25
1 files changed, 9 insertions, 16 deletions
diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml
index 7fdbc2a2e..a4a66ec41 100644
--- a/qt-mobile/qml/DiveDetailsView.qml
+++ b/qt-mobile/qml/DiveDetailsView.qml
@@ -80,8 +80,13 @@ Item {
}
MobileComponents.Label {
text: dive.date
- Layout.minimumWidth: Math.max(MobileComponents.Units.gridUnit * 4, paintedWidth) // helps vertical alignment throughout listview
- Layout.columnSpan: 3
+ Layout.columnSpan: 2
+ }
+ MobileComponents.Label {
+ id: numberText
+ Layout.alignment: Qt.AlignRight
+ text: "#" + dive.number
+ color: MobileComponents.Theme.textColor
}
MobileComponents.Label {
@@ -92,26 +97,14 @@ Item {
}
MobileComponents.Label {
text: dive.depth
- Layout.minimumWidth: Math.max(MobileComponents.Units.gridUnit * 4, paintedWidth) // helps vertical alignment throughout listview
}
MobileComponents.Label {
Layout.alignment: Qt.AlignRight
text: "Duration: "
opacity: 0.6
}
- RowLayout {
- MobileComponents.Label {
- text: dive.duration
- }
- Item {
- Layout.fillWidth: true
- height: parent.height
- }
- MobileComponents.Label {
- id: numberText
- text: "#" + dive.number
- color: MobileComponents.Theme.textColor
- }
+ MobileComponents.Label {
+ text: dive.duration
}
QMLProfile {