1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "UIConstants.js" as Const
9 color: Const.TRANSPARENT
12 border.color: Const.DEFAULT_FOREGROUND_COLOR
20 color: Const.DEFAULT_FOREGROUND_COLOR
36 function setProgres(progress) {
37 //console.log("proggress = "+progress);
38 if(bar.state!="progress") {
40 bar.state = "progress"
43 bar.width = root.width*progress;
47 function startDownload() {
48 //console.log("start download");
49 bar.width=root.width/2;
54 function stopDownload() {
55 //console.log("stop download");
64 if(bar.x+bar.width>=root.width)
69 if(bar.state=="right")
71 else if(bar.state=="left")
79 PropertyChanges { target: root; opacity: 1 }
83 PropertyChanges { target: root; opacity: 0 }
87 transitions: Transition {
88 NumberAnimation { properties: "opacity"; easing.type: Easing.InOutQuad }