Commit 7aa0a8bf authored by Nicolas Fella's avatar Nicolas Fella

Fix some unqualified property access

parent 8a3aa2ab
......@@ -26,6 +26,7 @@ import org.kde.kpublictransport 1.0
Kirigami.Page
{
id: root
title: i18nc("@title", "Details")
property var journey
......@@ -36,19 +37,19 @@ Kirigami.Page
anchors.fill: parent
model: journey.sections
model: root.journey.sections
delegate: Loader {
sourceComponent: {
console.log(modelData.mode)
switch(modelData.mode) {
console.log(model.modelData.mode)
switch(model.modelData.mode) {
case JourneySection.Walking: return walking
case JourneySection.Waiting: return waiting
case JourneySection.Transfer: return transfer
default: return card
}
}
property var theData: modelData
property var theData: model.modelData
}
}
......
......@@ -24,6 +24,7 @@ import org.kde.kirigami 2.0 as Kirigami
Kirigami.ApplicationWindow
{
id: window
width: 480
height: 720
......@@ -33,11 +34,11 @@ Kirigami.ApplicationWindow
actions: [
Kirigami.Action {
text: i18n("Journey")
onTriggered: pageStack.initialPage = Qt.resolvedUrl("JourneyQueryPage.qml")
onTriggered: window.pageStack.initialPage = Qt.resolvedUrl("JourneyQueryPage.qml")
},
Kirigami.Action {
text: i18n("Departures")
onTriggered: pageStack.initialPage = Qt.resolvedUrl("DepartureQueryPage.qml")
onTriggered: window.pageStack.initialPage = Qt.resolvedUrl("DepartureQueryPage.qml")
}
]
}
......
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