Fix binding loop in Toolbuttonstyle

Setting the implcit width to be the same as the current height is very
easy to end up looping.

actual height of the background is set by the base style, which is based
on the implicit sizes anyway.

BUG: 338750
Change-Id: Ic7606588cec09c6ff16515c208efe576466d31d6
This commit is contained in:
David Edmundson 2014-09-12 18:50:00 +02:00
parent 8bf612f9af
commit 4ee2d5ca22

View File

@ -170,7 +170,7 @@ QtQuickControlStyle.ButtonStyle {
implicitWidth: {
if (control.text.length == 0) {
height;
implicitHeight;
} else {
Math.max(theme.mSize(theme.defaultFont).width*12, style.minimumWidth);
}