GODT-2145: Fix button spacing w/ Qt 6.4.

This commit is contained in:
Xavier Michelon
2023-01-25 17:35:21 +01:00
parent 88a9fe410c
commit 048c3a900c

View File

@ -28,7 +28,7 @@ T.Button {
property alias secondary: control.flat
readonly property bool primary: !secondary
readonly property bool isIcon: control.text === ""
readonly property bool hasTextAndIcon: (control.text !== "") && (iconImage.source.toString().length > 0)
property bool loading: false
property bool borderless: false
@ -67,7 +67,7 @@ T.Button {
contentItem: RowLayout {
id: _contentItem
spacing: control.spacing
spacing: control.hasTextAndIcon ? control.spacing : 0
Proton.Label {
colorScheme: root.colorScheme