From 964c566ffb151126533ba0232d4279813e10cc80 Mon Sep 17 00:00:00 2001 From: "j.delarago" Date: Mon, 13 Jun 2022 14:43:23 +0200 Subject: [PATCH] Add spacing option between icon and text in IconWithText.qml --- resources/qml/IconWithText.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/qml/IconWithText.qml b/resources/qml/IconWithText.qml index cc0834d7ea..24f211ae17 100644 --- a/resources/qml/IconWithText.qml +++ b/resources/qml/IconWithText.qml @@ -22,6 +22,7 @@ Item property alias elide: label.elide property real margin: UM.Theme.getSize("narrow_margin").width property alias wrapMode: label.wrapMode + property real spacing: UM.Theme.getSize("narrow_margin").width // These properties can be used in combination with layouts. readonly property real contentWidth: icon.width + margin + label.contentWidth @@ -61,6 +62,7 @@ Item top: parent.top bottom: parent.bottom rightMargin: 0 + leftMargin: spacing margins: margin } }