2
import Ubuntu.Components 0.1
4
import "../../Applications"
5
import "../../Components"
11
property string price: ""
14
signal download(int index)
22
anchors.left: parent.left
23
anchors.leftMargin: units.gu(2)
29
property int buttonWidth: Math.min(units.gu(22), (width - spacing) / 2)
40
maximumRating: 10 // FIXME: this should happen on the backend side
47
width: parent.buttonWidth
49
text: root.price ? "Buy" : "Install"
51
iconSource: "graphics/icon_button_u1.png"
55
btnInstall.visible = false;
56
progressBar.opacity = 1;
57
progressBar.timer.start();
67
width: parent.buttonWidth
68
height: btnInstall.height
70
property alias timer: timerEvent
72
Behavior on opacity { PropertyAnimation { duration: 400; } }
79
if(progressBar.value < 100){
80
progressBar.value += 10;
83
progressBar.opacity = 0;