From 7888ab71958d9b91d4f1383c5d15a95c04b47f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Fri, 13 Jan 2023 18:01:16 +0100 Subject: [PATCH] [GraphEditor] Qt5.15: fix binding loop warning on "height" attribute --- meshroom/ui/qml/GraphEditor/AttributeEditor.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/qml/GraphEditor/AttributeEditor.qml b/meshroom/ui/qml/GraphEditor/AttributeEditor.qml index 335a166e..1e63ab10 100644 --- a/meshroom/ui/qml/GraphEditor/AttributeEditor.qml +++ b/meshroom/ui/qml/GraphEditor/AttributeEditor.qml @@ -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