mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-11 07:11:52 +02:00
[GraphEditor] Qt5.15: fix binding loop warning on "height" attribute
This commit is contained in:
parent
8c494198e0
commit
7888ab7195
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,6 @@ ListView {
|
||||||
delegate: Loader {
|
delegate: Loader {
|
||||||
active: object.enabled && (!object.desc.advanced || GraphEditorSettings.showAdvancedAttributes)
|
active: object.enabled && (!object.desc.advanced || GraphEditorSettings.showAdvancedAttributes)
|
||||||
visible: active
|
visible: active
|
||||||
height: item ? item.implicitHeight : -spacing // compensate for spacing if item is hidden
|
|
||||||
|
|
||||||
sourceComponent: AttributeItemDelegate {
|
sourceComponent: AttributeItemDelegate {
|
||||||
width: root.width - scrollBar.width
|
width: root.width - scrollBar.width
|
||||||
|
@ -34,6 +33,10 @@ ListView {
|
||||||
attribute: object
|
attribute: object
|
||||||
onDoubleClicked: root.attributeDoubleClicked(mouse, attr)
|
onDoubleClicked: root.attributeDoubleClicked(mouse, attr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onLoaded: {
|
||||||
|
height: item ? item.implicitHeight : -spacing // compensate for spacing if item is hidden
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper MouseArea to lose edit/activeFocus
|
// Helper MouseArea to lose edit/activeFocus
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue