Commit dee4ba7a authored by Volker Krause's avatar Volker Krause

Don't show useless information for waiting sections

parent 86c7ea48
...@@ -80,6 +80,7 @@ Kirigami.ScrollablePage { ...@@ -80,6 +80,7 @@ Kirigami.ScrollablePage {
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
RowLayout { RowLayout {
visible: modelData.mode != JourneySection.Waiting
QQC2.Label { QQC2.Label {
text: "From: " + modelData.from.name + " Platform: " + modelData.scheduledDeparturePlatform text: "From: " + modelData.from.name + " Platform: " + modelData.scheduledDeparturePlatform
} }
...@@ -90,6 +91,7 @@ Kirigami.ScrollablePage { ...@@ -90,6 +91,7 @@ Kirigami.ScrollablePage {
} }
} }
RowLayout { RowLayout {
visible: modelData.mode != JourneySection.Waiting
QQC2.Label { QQC2.Label {
text: "Departure: " + modelData.scheduledDepartureTime.toTimeString() text: "Departure: " + modelData.scheduledDepartureTime.toTimeString()
} }
...@@ -100,6 +102,7 @@ Kirigami.ScrollablePage { ...@@ -100,6 +102,7 @@ Kirigami.ScrollablePage {
} }
} }
QQC2.Label { QQC2.Label {
Layout.fillWidth: true
text: { text: {
switch (modelData.mode) { switch (modelData.mode) {
case JourneySection.PublicTransport: case JourneySection.PublicTransport:
...@@ -114,6 +117,7 @@ Kirigami.ScrollablePage { ...@@ -114,6 +117,7 @@ Kirigami.ScrollablePage {
}} }}
} }
RowLayout { RowLayout {
visible: modelData.mode != JourneySection.Waiting
QQC2.Label { QQC2.Label {
text: "To: " + modelData.to.name + " Platform: " + modelData.scheduledArrivalPlatform text: "To: " + modelData.to.name + " Platform: " + modelData.scheduledArrivalPlatform
} }
...@@ -124,6 +128,7 @@ Kirigami.ScrollablePage { ...@@ -124,6 +128,7 @@ Kirigami.ScrollablePage {
} }
} }
RowLayout { RowLayout {
visible: modelData.mode != JourneySection.Waiting
QQC2.Label { QQC2.Label {
text: "Arrival: " + modelData.scheduledArrivalTime.toTimeString() text: "Arrival: " + modelData.scheduledArrivalTime.toTimeString()
} }
......
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