Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/ActionButton.qml
Show All 21 Lines | |||||
22 | import org.kde.plasma.components 2.0 as PlasmaComponents | 22 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
23 | 23 | | |||
24 | Item { | 24 | Item { | ||
25 | id: root | 25 | id: root | ||
26 | property alias text: label.text | 26 | property alias text: label.text | ||
27 | property alias iconSource: icon.source | 27 | property alias iconSource: icon.source | ||
28 | property alias containsMouse: mouseArea.containsMouse | 28 | property alias containsMouse: mouseArea.containsMouse | ||
29 | property alias font: label.font | 29 | property alias font: label.font | ||
30 | property alias labelRendering: label.renderType | ||||
30 | signal clicked | 31 | signal clicked | ||
31 | 32 | | |||
32 | activeFocusOnTab: true | 33 | activeFocusOnTab: true | ||
33 | 34 | | |||
34 | property int iconSize: units.gridUnit * 3 | 35 | property int iconSize: units.gridUnit * 3 | ||
35 | 36 | | |||
36 | implicitWidth: Math.max(iconSize + units.largeSpacing * 2, label.contentWidth) | 37 | implicitWidth: Math.max(iconSize + units.largeSpacing * 2, label.contentWidth) | ||
37 | implicitHeight: iconSize + units.smallSpacing + label.implicitHeight | 38 | implicitHeight: iconSize + units.smallSpacing + label.implicitHeight | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |