6 property int minimum: 0
7 property int maximum: 100
9 property alias color: gradient1.color
10 property alias secondColor: gradient2.color
12 function setMax(intiger) { maximum=intiger }
13 function setMin(intiger) { minimum=intiger }
14 function setValue(intiger) { value= intiger }
21 source: "background.png"
22 width: parent.width; height: parent.height
23 border { left: 4; top: 4; right: 4; bottom: 4 }
29 property int widthDest: ((progressbar.width * (value - minimum)) / (maximum - minimum) - 6)
31 width: highlight.widthDest
32 Behavior on width { SmoothedAnimation { velocity: 1200 } }
34 anchors { left: parent.left; top: parent.top; bottom: parent.bottom; margins: 3 }
37 GradientStop { id: gradient1; position: 0.0 }
38 GradientStop { id: gradient2; position: 1.0 }
43 anchors { right: highlight.right; rightMargin: 6; verticalCenter: parent.verticalCenter }
46 text: Math.floor((value - minimum) / (maximum - minimum) * 100) + '%'