Commit 2fc6253a authored by Volker Krause's avatar Volker Krause
Browse files

Don't hardcode platform modes

Instead, allow the caller to specify this.
parent f04d8388
......@@ -30,8 +30,10 @@ Kirigami.Page {
property string arrivalGateName
property string arrivalPlatformName
property var arrivalPlatformMode: Platform.Rail
property string departureGateName
property string departurePlatformName
property var departurePlatformMode: Platform.Rail
property string region
property string timeZone
......@@ -285,8 +287,8 @@ Kirigami.Page {
Connections {
target: map.mapLoader
function onDone() {
platformModel.setArrivalPlatform(root.arrivalPlatformName, Platform.Rail);
platformModel.setDeparturePlatform(root.departurePlatformName, Platform.Rail);
platformModel.setArrivalPlatform(root.arrivalPlatformName, root.arrivalPlatformMode);
platformModel.setDeparturePlatform(root.departurePlatformName, root.departurePlatformMode);
gateModel.setArrivalGate(root.arrivalGateName);
gateModel.setDepartureGate(root.departureGateName);
map.region = root.region;
......
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