psa: added progress bar for updates
[feedingit] / psa_harmattan / feedingit / qml / Categories.qml
index 4469ba1..be7205e 100644 (file)
@@ -1,4 +1,5 @@
 import Qt 4.7
+import com.nokia.meego 1.0
 
 Item {
 //    anchors.fill: parent;
@@ -15,7 +16,20 @@ Item {
 
     ListView {
         id: categoryList; model: categories; delegate: categoryDelegate; z: 6;
-        cacheBuffer: 100; width: parent.width; height: parent.height;
+        cacheBuffer: 100; width: parent.width;
+        height: updateBarFeeds.visible? parent.height-updateBarFeeds.height : parent.height;
+        clip: true
+        /*height: parent.height;*/
+    }
+
+    ProgressBar {
+        id: updateBar
+        minimumValue: 0
+        maximumValue: 100
+        value: window.updateProgressValue
+        visible: window.isUpdateInProgress
+        anchors.bottom: parent.bottom
+        width: parent.width
     }
 
     XmlListModel {