mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-30 18:57:53 +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 {
|
ListView {
|
||||||
id: root
|
id: root
|
||||||
property variant attributes: null
|
|
||||||
property bool readOnly: false
|
property bool readOnly: false
|
||||||
property int labelWidth: 180
|
property int labelWidth: 180
|
||||||
|
|
||||||
|
@ -23,8 +22,6 @@ ListView {
|
||||||
clip: true
|
clip: true
|
||||||
ScrollBar.vertical: ScrollBar { id: scrollBar }
|
ScrollBar.vertical: ScrollBar { id: scrollBar }
|
||||||
|
|
||||||
model: attributes
|
|
||||||
|
|
||||||
delegate: Loader {
|
delegate: Loader {
|
||||||
active: object.enabled && (!object.desc.advanced || GraphEditorSettings.showAdvancedAttributes)
|
active: object.enabled && (!object.desc.advanced || GraphEditorSettings.showAdvancedAttributes)
|
||||||
visible: active
|
visible: active
|
||||||
|
|
|
@ -370,7 +370,7 @@ RowLayout {
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
var cpt = Qt.createComponent("AttributeEditor.qml");
|
var cpt = Qt.createComponent("AttributeEditor.qml");
|
||||||
var obj = cpt.createObject(groupItem,
|
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 }),
|
'readOnly': Qt.binding(function() { return root.readOnly }),
|
||||||
'labelWidth': 100, // reduce label width for children (space gain)
|
'labelWidth': 100, // reduce label width for children (space gain)
|
||||||
})
|
})
|
||||||
|
|
|
@ -122,7 +122,7 @@ Panel {
|
||||||
currentIndex: tabBar.currentIndex
|
currentIndex: tabBar.currentIndex
|
||||||
|
|
||||||
AttributeEditor {
|
AttributeEditor {
|
||||||
attributes: root.node.attributes
|
model: root.node.attributes
|
||||||
readOnly: root.readOnly || root.isCompatibilityNode
|
readOnly: root.readOnly || root.isCompatibilityNode
|
||||||
onAttributeDoubleClicked: root.attributeDoubleClicked(mouse, attribute)
|
onAttributeDoubleClicked: root.attributeDoubleClicked(mouse, attribute)
|
||||||
onUpgradeRequest: root.upgradeRequest()
|
onUpgradeRequest: root.upgradeRequest()
|
||||||
|
|
Loading…
Add table
Reference in a new issue