mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[ui] Graph Editor: remove useless attributes property
This commit is contained in:
parent
524a4ab629
commit
a5407fc8c7
3 changed files with 2 additions and 5 deletions
|
@ -10,7 +10,6 @@ import Utils 1.0
|
|||
|
||||
ListView {
|
||||
id: root
|
||||
property variant attributes: null
|
||||
property bool readOnly: false
|
||||
property int labelWidth: 180
|
||||
|
||||
|
@ -23,8 +22,6 @@ ListView {
|
|||
clip: true
|
||||
ScrollBar.vertical: ScrollBar { id: scrollBar }
|
||||
|
||||
model: attributes
|
||||
|
||||
delegate: Loader {
|
||||
active: object.enabled && (!object.desc.advanced || GraphEditorSettings.showAdvancedAttributes)
|
||||
visible: active
|
||||
|
|
|
@ -370,7 +370,7 @@ RowLayout {
|
|||
Component.onCompleted: {
|
||||
var cpt = Qt.createComponent("AttributeEditor.qml");
|
||||
var obj = cpt.createObject(groupItem,
|
||||
{'attributes': Qt.binding(function() { return attribute.value }),
|
||||
{'model': Qt.binding(function() { return attribute.value }),
|
||||
'readOnly': Qt.binding(function() { return root.readOnly }),
|
||||
'labelWidth': 100, // reduce label width for children (space gain)
|
||||
})
|
||||
|
|
|
@ -122,7 +122,7 @@ Panel {
|
|||
currentIndex: tabBar.currentIndex
|
||||
|
||||
AttributeEditor {
|
||||
attributes: root.node.attributes
|
||||
model: root.node.attributes
|
||||
readOnly: root.readOnly || root.isCompatibilityNode
|
||||
onAttributeDoubleClicked: root.attributeDoubleClicked(mouse, attribute)
|
||||
onUpgradeRequest: root.upgradeRequest()
|
||||
|
|
Loading…
Add table
Reference in a new issue