function showAboutPage()
{
var component = Qt.createComponent("AboutPage.qml")
- if (component.status == Component.Ready) {
+ if (component.status === Component.Ready) {
about = component.createObject(stationListPage)
pageStack.push(about)
} else
function loadStation(name)
{
var component = Qt.createComponent("StationPage.qml");
- if (component.status == Component.Ready) {
+ if (component.status === Component.Ready) {
view = component.createObject(stationListPage)
stationListPage.stationView = view
pageStack.push(view)
- view.html = "<h1>Loading station " + name + "</h1><p>Lorem ipsum</p>"
- provider.stationSchedule(name)
+ view.name = name
}
else
console.log('Cannot load component: ' + component.errorString());