[GraphEditor] Qt5.15: fix binding loop warning on "height" attribute

This commit is contained in:
Candice Bentéjac 2023-01-13 18:01:16 +01:00
parent 8c494198e0
commit 7888ab7195

View file

@ -25,7 +25,6 @@ ListView {
delegate: Loader {
active: object.enabled && (!object.desc.advanced || GraphEditorSettings.showAdvancedAttributes)
visible: active
height: item ? item.implicitHeight : -spacing // compensate for spacing if item is hidden
sourceComponent: AttributeItemDelegate {
width: root.width - scrollBar.width
@ -34,6 +33,10 @@ ListView {
attribute: object
onDoubleClicked: root.attributeDoubleClicked(mouse, attr)
}
onLoaded: {
height: item ? item.implicitHeight : -spacing // compensate for spacing if item is hidden
}
}
// Helper MouseArea to lose edit/activeFocus