import QtQuick 1.0 // to target S60 5th Edition or Maemo 5 import "components" import "UIConstants.js" as Const Item { id: root property int count: 0 height: taskView.height function addTask(type,filename) { //emptyLabel.visible = Utils.emptyQuee(); //emptyLabel.visible = false; var comp = Qt.createComponent("components/Bar.qml"); var obj = comp.createObject(taskView); if (obj==null) { console.log("Error creating object"); } else { root.count++; obj.width = root.width obj.label = filename; if(type=="download") obj.isDownload = true; if(type=="upload") obj.isUpload = true; } } function setProgress(filename, progress) { var l = taskView.children.length; for(var i=0;i