aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetailsView.qml28
1 files changed, 12 insertions, 16 deletions
diff --git a/qt-mobile/qml/DiveDetailsView.qml b/qt-mobile/qml/DiveDetailsView.qml
index 97d910862..e3fe59416 100644
--- a/qt-mobile/qml/DiveDetailsView.qml
+++ b/qt-mobile/qml/DiveDetailsView.qml
@@ -72,8 +72,14 @@ Item {
}
MobileComponents.Label {
text: dive.date + " " + dive.time
- Layout.minimumWidth: Math.max(MobileComponents.Units.gridUnit * 4, paintedWidth) // helps vertical alignment throughout listview
- Layout.columnSpan: 3
+ wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
+ Layout.columnSpan: 2
+ }
+ MobileComponents.Label {
+ id: numberText
+ text: "#" + dive.number
+ color: MobileComponents.Theme.textColor
+ wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
}
MobileComponents.Label {
@@ -84,26 +90,16 @@ 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
+ wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere
+ Layout.fillWidth: true
}
QMLProfile {