don't compute two times the same thing

This commit is contained in:
Marco Martin 2014-07-24 20:16:46 +02:00
parent 0c2138916e
commit 7538c3292c

View File

@ -47,7 +47,7 @@ QtQuickControlStyle.ButtonStyle {
} }
} }
property real minimumHeight: Math.max(units.iconSizes.small, label.implicitHeight) + style.padding.top + style.padding.bottom property real minimumHeight: Layout.preferredHeight + style.padding.top + style.padding.bottom
onMinimumHeightChanged: { onMinimumHeightChanged: {
if (control.minimumHeight !== undefined) { if (control.minimumHeight !== undefined) {
style.minimumHeight = minimumHeight; style.minimumHeight = minimumHeight;