summaryrefslogtreecommitdiffstats
path: root/framework/qml/IconButton.qml
diff options
context:
space:
mode:
Diffstat (limited to 'framework/qml/IconButton.qml')
-rw-r--r--framework/qml/IconButton.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/qml/IconButton.qml b/framework/qml/IconButton.qml
index a2a9245d..b9b20102 100644
--- a/framework/qml/IconButton.qml
+++ b/framework/qml/IconButton.qml
@@ -24,7 +24,7 @@ import org.kube.framework 1.0 as Kube
24T.Button { 24T.Button {
25 id: root 25 id: root
26 26
27 property var iconName 27 property alias iconName: icon.iconName
28 28
29 width: Kube.Units.gridUnit + padding * 2 29 width: Kube.Units.gridUnit + padding * 2
30 height: Kube.Units.gridUnit + padding * 2 30 height: Kube.Units.gridUnit + padding * 2
@@ -48,9 +48,7 @@ T.Button {
48 } 48 }
49 49
50 contentItem: Kube.Icon { 50 contentItem: Kube.Icon {
51 width: root.height - Kube.Units.smallSpacing * 2 51 id: icon
52 height: width
53 iconName: root.iconName
54 } 52 }
55} 53}
56 54