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:
parent
8bf612f9af
commit
4ee2d5ca22
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user