18 import Ubuntu.Components 0.1
23 property alias text: label.text
24 property alias subText: subTextLabel.text
25 property string iconName
30 anchors.centerIn: parent
32 height: childrenRect.height
39 height: label.visible || icon.visible ? Math.max(label.height, icon.height) : 0
43 anchors.centerIn: parent
45 horizontalAlignment: Text.AlignHCenter
48 font.weight: Font.DemiBold
49 visible: text.length > 0
56 anchors.centerIn: parent
59 visible: name.length > 0
66 anchors.horizontalCenter: parent.horizontalCenter
67 visible: text.length > 0
73 onClicked: root.clicked()