detailview fixed, debug data
authorFlorian Schweikert <kelvan@logic.at>
Sat, 11 Jun 2011 00:56:24 +0000 (02:56 +0200)
committerFlorian Schweikert <kelvan@logic.at>
Sat, 11 Jun 2011 00:56:24 +0000 (02:56 +0200)
ui/Overview.qml

index 9b44e37..1936166 100644 (file)
@@ -70,7 +70,7 @@ Rectangle {
 
                 anchors.left: parent.left
                 anchors.right: parent.right
-                anchors.top: detailsTitle.buttom
+                anchors.top: detailsTitle.bottom
                 horizontalAlignment: Text.AlignLeft
                 font.pixelSize: 20
             }
@@ -83,7 +83,12 @@ Rectangle {
 
         function showDetails(details) {
             detailsTitle.text = 'Details for ' + details.time_from + '-' + details.time_to
-            detailsList.text = 'Station: ' + details.details[0].station
+            detailsList.text = ''
+            for(var k=0; k < details.details.length; k++) {
+               if (details.details[k].station != '') {
+                       detailsList.text += 'Station: ' + details.details[k].station + '\n' + details.details[k].info + '\n'
+               }
+            }
             lv.state = 'details'
         }
     }