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:
Aleix Pol 2015-08-07 14:21:30 +02:00
parent f87f03b4a8
commit 74a605e0cf

View File

@ -36,9 +36,7 @@ QtQuickControlStyle.ButtonStyle {
property int minimumHeight
label: RowLayout {
id: buttonContent
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
onMinimumWidthChanged: {