Fix qml warning spam

This commit is contained in:
Jaime van Kessel 2021-08-12 15:27:39 +02:00
parent 21a076aea4
commit 79ccccb1a1

View file

@ -174,10 +174,14 @@ Item
Cura.RadioButton Cura.RadioButton
{ {
id: radioButton id: radioButton
anchors.left: parent.left anchors
anchors.leftMargin: UM.Theme.getSize("standard_list_lineheight").width {
anchors.right: parent.right left: parent !== null ? parent.left: undefined
anchors.rightMargin: UM.Theme.getSize("default_margin").width leftMargin: UM.Theme.getSize("standard_list_lineheight").width
right: parent !== null ? parent.right: undefined
rightMargin: UM.Theme.getSize("default_margin").width
}
height: visible ? UM.Theme.getSize("standard_list_lineheight").height : 0 height: visible ? UM.Theme.getSize("standard_list_lineheight").height : 0
checked: ListView.view.currentIndex == index checked: ListView.view.currentIndex == index