psa: added progress bar for updates
[feedingit] / psa_harmattan / feedingit / deb_dist / feedingit-0.1.0 / qml / Feeds.qml
index 8df8c5e..318faa1 100644 (file)
@@ -1,4 +1,5 @@
 import Qt 4.7
+import com.nokia.meego 1.0
 
 Item {
     property string catid : parent.catid
@@ -19,9 +20,21 @@ Item {
 
     ListView {
         id: feedList; model: feeds; delegate: feedDelegate; z: 6
-        width: parent.width; height: parent.height; /*x: 0;*/
+        width: parent.width; height: updateBarFeeds.visible? parent.height-updateBarFeeds.height : parent.height; /*x: 0;*/
         cacheBuffer: 100;
         flickDeceleration: 1500
+        clip: true
+    }
+
+    ProgressBar {
+        id: updateBarFeeds
+        minimumValue: 0
+        maximumValue: 100
+        value: window.updateProgressValue
+        visible: window.isUpdateInProgress
+        anchors.bottom: parent.bottom
+        z: 8
+        width: parent.width
     }
 
     XmlListModel {