2
import Ubuntu.Components 1.3
6
implicitWidth: Math.max(iconShape.width, titleLabel.width)
7
implicitHeight: iconShape.height + titleLabel.height + labelMargin + iconMargin
8
property alias title: titleLabel.text
9
property alias iconSource: icon.source
11
property real iconHeight: (height - titleLabel.height) * 0.65
12
property real iconMargin: (height - titleLabel.height) * 0.25
13
property real labelMargin: (height - titleLabel.height) * 0.1
14
property int maxWidth: units.gu(10)
26
borderSource: "undefined"
27
aspect: UbuntuShape.Flat
30
sourceSize.width: iconShape.width
31
sourceSize.height: iconShape.height
32
cache: false // see lpbug#1543290 why no cache
37
anchors.fill: iconShape
38
onClicked: root.clicked()
46
topMargin: labelMargin
51
elide: Label.ElideRight