3 import com.nokia.meego 1.1
7 width: Math.max(150, Math.max(label.width, icon.width) + 20);
10 property string normalIcon: ""
11 property string checkedIcon: ""
12 property int value: -1
13 property int savedValue: -1
15 property alias iconSource: icon.source
16 property alias text: label.text
22 onClicked: root.clicked();
28 anchors.top: parent.top
29 anchors.left: parent.left
30 anchors.right: parent.right
32 anchors.leftMargin: 10
33 anchors.rightMargin: 10
34 source: root.value == root.savedValue ? checkedIcon : normalIcon
35 fillMode: Image.PreserveAspectFit
40 anchors.left: parent.left
41 anchors.right: parent.right
42 anchors.bottom: parent.bottom
43 anchors.top: icon.bottom
44 anchors.bottomMargin: 10
45 anchors.leftMargin: 10
46 anchors.rightMargin: 10
48 horizontalAlignment: Text.AlignHCenter