round only when square
This commit is contained in:
parent
78a87b1da3
commit
d8116afac3
@ -99,7 +99,7 @@ Item {
|
||||
anchors.fill:parent
|
||||
property QtObject margins: item.margins
|
||||
sourceComponent: {
|
||||
if (label.text.length == 0) {
|
||||
if (label.text.length == 0 && button.width == button.height) {
|
||||
return roundButtonComponent
|
||||
} else {
|
||||
return buttonComponent
|
||||
|
@ -152,7 +152,7 @@ Item {
|
||||
property QtObject margins: item.margins
|
||||
property string shadowState: "shadow"
|
||||
sourceComponent: {
|
||||
if (label.text.length == 0) {
|
||||
if (label.text.length == 0 && button.width == button.height) {
|
||||
return roundButtonComponent
|
||||
} else {
|
||||
return buttonComponent
|
||||
|
Loading…
x
Reference in New Issue
Block a user