4
property alias icon: icon.source
5
property alias label: label.text
6
property bool folded: true
7
property int availableCount
15
anchors.verticalCenter: parent.verticalCenter
16
anchors.left: parent.left
18
fillMode: Image.PreserveAspectFit
19
sourceSize.width: width
20
sourceSize.height: height
26
color: parent.state == "pressed" ? "#444444" : "#ffffff"
28
anchors.bottom: parent.bottom
29
anchors.bottomMargin: 5
30
anchors.left: icon.right
38
visible: availableCount > 0
39
rotation: folded ? 0 : 90
40
source: "artwork/arrow.png"
43
anchors.verticalCenter: parent.verticalCenter
44
anchors.left: label.right
46
fillMode: Image.PreserveAspectFit
47
sourceSize.width: width
48
sourceSize.height: height
54
opacity: parent.state == "selected" ? 0.0 : 1.0
55
Behavior on opacity {NumberAnimation {duration: 100}}
58
anchors.bottom: parent.bottom
59
anchors.left: parent.left
61
anchors.right: parent.right
62
anchors.rightMargin: 1