Commit a9135c35 authored by Volker Krause's avatar Volker Krause
Browse files

Show load information when available in the departure query test as well

parent bd00bc3a
Pipeline #56017 passed with stage
in 21 seconds
......@@ -192,6 +192,43 @@ Kirigami.ApplicationWindow {
color: Kirigami.Theme.negativeTextColor
}
}
RowLayout {
visible: departure.loadInformation.length > 0
QQC2.Label {
text: "Load: ";
}
Repeater {
model: departure.loadInformation
RowLayout {
QQC2.Label {
text: {
switch (modelData.load) {
case Load.Low: return "Low";
case Load.Medium: return "Medium";
case Load.High: return "High";
case Load.Full: return "Full";
default: return "?"
}
}
color: {
switch (modelData.load) {
case Load.Low: return Kirigami.Theme.positiveTextColor;
case Load.Medium: return Kirigami.Theme.neutralTextColor;
case Load.High:
case Load.Full:
return Kirigami.Theme.negativeTextColor;
default:
return Kirigami.Theme.textColor;
}
}
}
QQC2.Label {
text: "(class " + modelData.seatingClass + ")"
visible: modelData.seatingClass != ""
}
}
}
}
QQC2.Label {
text: departure.notes.join("<br/>")
visible: departure.notes.length > 0
......
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