mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 06:45:09 -06:00
Actually fix QML nullptr warnings for real.
This commit is contained in:
parent
31434ebde8
commit
7a1850a87b
2 changed files with 5 additions and 6 deletions
|
@ -97,18 +97,17 @@ Item
|
|||
Component
|
||||
{
|
||||
id: disabledComponent
|
||||
Rectangle
|
||||
Item
|
||||
{
|
||||
height: checkboxSize
|
||||
width: checkboxSize
|
||||
color: "transparent"
|
||||
|
||||
Rectangle
|
||||
{
|
||||
// This can (and should) be done wiht a verticalCenter. For some reason it does work in QtCreator
|
||||
// but not when using the exact same QML in Cura.
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent ? parent.verticalCenter : undefined
|
||||
anchors.horizontalCenter: parent ? parent.horizontalCenter : undefined
|
||||
height: inactiveMarkerSize
|
||||
width: inactiveMarkerSize
|
||||
radius: Math.round(width / 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue