Drop size check for round ToolButton

It causes binding loops causing all sorts of weird behavior, like the buttons
in Klipper not always having a background.

Changelog: Fix rendering glitches with ToolButtons that don't have a label

REVIEW: 122609
BUG: 339303
BUG: 340588
This commit is contained in:
Kai Uwe Broulik 2015-02-17 23:15:37 +01:00
parent 70b545a964
commit 2a4812c9ba

View File

@ -119,7 +119,7 @@ QtQuickControlStyle.ButtonStyle {
}
background: {
if (control.text.length == 0 && control.width == control.height && (control.parent && control.parent.checkedButton === undefined) && !style.flat) {
if (control.text.length == 0 && (control.parent && control.parent.checkedButton === undefined) && !style.flat) {
return roundButtonComponent
} else {
return buttonComponent