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

Show distance/travel time for rental vehicle sections as well

parent 6547d469
Pipeline #84261 passed with stage
in 1 minute and 17 seconds
...@@ -242,7 +242,7 @@ Kirigami.ApplicationWindow { ...@@ -242,7 +242,7 @@ Kirigami.ApplicationWindow {
case JourneySection.Waiting: case JourneySection.Waiting:
return "Wait " + displayDuration(modelData.duration) return "Wait " + displayDuration(modelData.duration)
case JourneySection.RentedVehicle: case JourneySection.RentedVehicle:
return modelData.rentalVehicle.network.name; return "Drive (" + modelData.rentalVehicle.network.name + ") " + displayDuration(modelData.duration) + " / " + displayDistance(modelData.distance);
return "???"; return "???";
}} }}
} }
...@@ -399,7 +399,7 @@ Kirigami.ApplicationWindow { ...@@ -399,7 +399,7 @@ Kirigami.ApplicationWindow {
QQC2.CheckBox { QQC2.CheckBox {
id: rentalMode id: rentalMode
checked: true checked: true
text: "Retal Vehicles" text: "Rental Vehicles"
} }
} }
RowLayout { RowLayout {
......
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