[qt6][GraphEditor] Node: Ensure readOnly is set with a boolean

This commit is contained in:
Candice Bentéjac 2024-10-17 15:14:31 +02:00
parent 36f7f4e420
commit a61231916f

View file

@ -446,7 +446,7 @@ Item {
property real globalX: root.x + nodeAttributes.x + inputs.x + inputLoader.x + inPin.x
property real globalY: root.y + nodeAttributes.y + inputs.y + inputLoader.y + inPin.y
readOnly: root.readOnly || object.isReadOnly
readOnly: Boolean(root.readOnly || object.isReadOnly)
Component.onCompleted: attributePinCreated(attribute, inPin)
Component.onDestruction: attributePinDeleted(attribute, inPin)
onPressed: function(mouse) { root.pressed(mouse) }