Don't show the circular background if there's a menu

Otherwise it's centered on the button instead to the icon and it looks
wrong. Also it's good that we use the rectangular background as it involves
all the button, arrow included.

Reviewed by Marco Martin
This commit is contained in:
Aleix Pol 2015-07-21 17:30:21 +02:00
parent 6098528cd4
commit 99282d151b

View File

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