Added Menu item to open the about page
[quandoparte] / application / resources / harmattan / qml / StationListPage.js
index 747be56..09cbafb 100644 (file)
@@ -1,4 +1,15 @@
 var view = undefined
+var about = undefined
+
+function showAboutPage()
+{
+    var component = Qt.createComponent("AboutPage.qml")
+    if (component.status == Component.Ready) {
+        about = component.createObject(stationListPage)
+        pageStack.push(about)
+    } else
+        console.log('Cannot load component: ' + component.errorString());
+}
 
 function loadStation(name)
 {
@@ -18,7 +29,6 @@ function highlightSearch(s, color)
 {
     // TODO compile RegExp on change, or find a way to cleanly use
     // stationListProxyModel.filterRegExp
-    console.log("string:" + s + " color: " + color)
     if (searchField.text.length) {
         var r = new RegExp(searchField.text, 'i')
         var match = r.exec(s)