mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +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 {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue