Commit 5448d578 authored by Tobias Fella's avatar Tobias Fella Committed by Nicolas Fella

fix text wrap

parent 009361e6
...@@ -111,18 +111,20 @@ Kirigami.Page ...@@ -111,18 +111,20 @@ Kirigami.Page
width: parent.width width: parent.width
Label { Label {
text: theData.scheduledDepartureTime.toLocaleTimeString(Locale.ShortFormat) text: theData.scheduledDepartureTime.toLocaleTimeString(Locale.ShortFormat)
anchors.top: parent.top
} }
Label { Label {
text: theData.expectedDepartureTime.toLocaleTimeString(Locale.ShortFormat) text: theData.expectedDepartureTime.toLocaleTimeString(Locale.ShortFormat)
visible: theData.departureDelay > 0 visible: theData.departureDelay > 0
anchors.top: parent.top
color: "red" color: "red"
} }
Label { Label {
text: theData.from.name text: theData.from.name
Layout.fillWidth: true Layout.fillWidth: true
elide: Text.ElideRight wrapMode: Text.Wrap
} }
Label { Label {
...@@ -134,17 +136,20 @@ Kirigami.Page ...@@ -134,17 +136,20 @@ Kirigami.Page
width: parent.width width: parent.width
Label { Label {
text: theData.scheduledArrivalTime.toLocaleTimeString(Locale.ShortFormat) text: theData.scheduledArrivalTime.toLocaleTimeString(Locale.ShortFormat)
anchors.top: parent.top
} }
Label { Label {
text: theData.expectedArrivalTime.toLocaleTimeString(Locale.ShortFormat) text: theData.expectedArrivalTime.toLocaleTimeString(Locale.ShortFormat)
visible: theData.arrivalDelay > 0 visible: theData.arrivalDelay > 0
anchors.top: parent.top
color: "red" color: "red"
} }
Label { Label {
text: theData.to.name text: theData.to.name
Layout.fillWidth: true Layout.fillWidth: true
wrapMode: Text.Wrap
} }
Label { Label {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment