Let the RowLayout figure out the size of the label
No need to specify the preferredHeight as the RowLayout can already infer it automatically. REVIEW: 124646
This commit is contained in:
parent
f87f03b4a8
commit
74a605e0cf
@ -36,9 +36,7 @@ QtQuickControlStyle.ButtonStyle {
|
|||||||
property int minimumHeight
|
property int minimumHeight
|
||||||
|
|
||||||
label: RowLayout {
|
label: RowLayout {
|
||||||
id: buttonContent
|
|
||||||
spacing: units.smallSpacing
|
spacing: units.smallSpacing
|
||||||
Layout.preferredHeight: Math.max(units.iconSizes.small, label.implicitHeight, icon.implicitHeight)
|
|
||||||
|
|
||||||
property real minimumWidth: Layout.minimumWidth + style.padding.left + style.padding.right
|
property real minimumWidth: Layout.minimumWidth + style.padding.left + style.padding.right
|
||||||
onMinimumWidthChanged: {
|
onMinimumWidthChanged: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user