18 import Ubuntu.Components 0.1
22 opacity: enabled ? 1 : 0.6
24 property alias text: label.text
25 property alias subText: subTextLabel.text
26 property string iconName
31 anchors.centerIn: parent
33 height: childrenRect.height
40 height: label.visible || icon.visible ? Math.max(label.height, icon.height) : 0
44 anchors.centerIn: parent
46 horizontalAlignment: Text.AlignHCenter
49 font.weight: Font.DemiBold
50 visible: text.length > 0
57 anchors.centerIn: parent
60 visible: name.length > 0
67 anchors.horizontalCenter: parent.horizontalCenter
68 visible: text.length > 0
74 onClicked: root.clicked()