From 3189a5ece2b63cdb6bd7f10ed92b5fa664f26a74 Mon Sep 17 00:00:00 2001 From: Svintsov Dmitry Date: Fri, 10 Jun 2016 17:00:18 +0500 Subject: [PATCH] Added iconSize property for ActionButton --- src/components/ActionButton.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/ActionButton.qml b/src/components/ActionButton.qml index c2866630..2c476f0b 100644 --- a/src/components/ActionButton.qml +++ b/src/components/ActionButton.qml @@ -64,6 +64,11 @@ Controls.Button { */ property bool isMiniSize: false + /*! + Size of Icon + */ + property int iconSize: 0 + style: ControlStyles.ButtonStyle { padding { left: 0 @@ -123,7 +128,7 @@ Controls.Button { anchors.centerIn: parent name: control.iconName color: button.iconColor - size: 24 * Units.dp + size: iconSize ? iconSize : Math.round(parent.implicitHeight * 0.6) } } }