fix warnings when ToolButton has no parent
This commit is contained in:
parent
fba3fe8966
commit
93c43d83d4
@ -164,7 +164,7 @@ Item {
|
|||||||
property QtObject margins: item.margins
|
property QtObject margins: item.margins
|
||||||
property string shadowState: "shadow"
|
property string shadowState: "shadow"
|
||||||
sourceComponent: {
|
sourceComponent: {
|
||||||
if (label.text.length == 0 && button.width == button.height && button.parent.checkedButton === undefined && !flat) {
|
if (label.text.length == 0 && button.width == button.height && (button.parent && button.parent.checkedButton === undefined) && !flat) {
|
||||||
return roundButtonComponent
|
return roundButtonComponent
|
||||||
} else {
|
} else {
|
||||||
return buttonComponent
|
return buttonComponent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user