Fix qml warning about the sourceSize of the ToolbarButton icon

CURA-8202
This commit is contained in:
Konstantinos Karmas 2021-06-30 12:26:13 +02:00
parent 72ca4a9564
commit 3eafd11587

View file

@ -68,7 +68,8 @@ Item
source: UM.Theme.getIcon(model.icon) != "" ? UM.Theme.getIcon(model.icon) : "file:///" + model.location + "/" + model.icon
color: UM.Theme.getColor("icon")
sourceSize: Math.round(UM.Theme.getSize("button") / 2)
sourceSize.height: Math.round(UM.Theme.getSize("button").height / 2)
sourceSize.width: Math.round(UM.Theme.getSize("button").width / 2)
}
onCheckedChanged: