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