4 function showAboutPage()
6 var component = Qt.createComponent("AboutPage.qml")
7 if (component.status === Component.Ready) {
8 about = component.createObject(stationListPage)
11 console.log('Cannot load component: ' + component.errorString());
14 function loadStation(name)
16 var component = Qt.createComponent("StationPage.qml");
17 if (component.status === Component.Ready) {
18 view = component.createObject(stationListPage)
19 stationListPage.stationView = view
24 console.log('Cannot load component: ' + component.errorString());
27 function highlightSearch(s, color)
29 // TODO compile RegExp on change, or find a way to cleanly use
30 // stationListProxyModel.filterRegExp
31 if (searchField.text.length) {
32 var r = new RegExp(searchField.text, 'i')
34 return s.replace(r, '<span style="text-decoration:underline;color:' + color + ';">' +