mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-04 04:36:58 +02:00
[ui] GraphEditor: fix binding warnings
This commit is contained in:
parent
79e1c69d5d
commit
ae7daf0365
2 changed files with 6 additions and 6 deletions
|
@ -58,7 +58,7 @@ RowLayout {
|
||||||
color: Colors.sysPalette.base
|
color: Colors.sysPalette.base
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
visible: inputConnectMA.containsMouse || childrenRepeater.count > 0 || attribute.isLink
|
visible: inputConnectMA.containsMouse || childrenRepeater.count > 0 || (attribute && attribute.isLink)
|
||||||
radius: isList ? 0 : 2
|
radius: isList ? 0 : 2
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: 2
|
anchors.margins: 2
|
||||||
|
@ -169,7 +169,7 @@ RowLayout {
|
||||||
id: nameLabel
|
id: nameLabel
|
||||||
|
|
||||||
property bool hovered: (inputConnectMA.containsMouse || inputConnectMA.drag.active || inputDropArea.containsDrag || outputConnectMA.containsMouse || outputConnectMA.drag.active || outputDropArea.containsDrag)
|
property bool hovered: (inputConnectMA.containsMouse || inputConnectMA.drag.active || inputDropArea.containsDrag || outputConnectMA.containsMouse || outputConnectMA.drag.active || outputDropArea.containsDrag)
|
||||||
text: attribute.label
|
text: attribute ? attribute.label : ""
|
||||||
elide: hovered ? Text.ElideNone : Text.ElideMiddle
|
elide: hovered ? Text.ElideNone : Text.ElideMiddle
|
||||||
width: hovered ? contentWidth : parent.width
|
width: hovered ? contentWidth : parent.width
|
||||||
font.pointSize: 7
|
font.pointSize: 7
|
||||||
|
|
|
@ -162,7 +162,7 @@ Item {
|
||||||
// Node Name
|
// Node Name
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: node.label
|
text: node ? node.label : ""
|
||||||
padding: 4
|
padding: 4
|
||||||
color: root.selected ? "white" : activePalette.text
|
color: root.selected ? "white" : activePalette.text
|
||||||
elide: Text.ElideMiddle
|
elide: Text.ElideMiddle
|
||||||
|
@ -218,7 +218,7 @@ Item {
|
||||||
defaultColor: Colors.sysPalette.mid
|
defaultColor: Colors.sysPalette.mid
|
||||||
implicitHeight: 3
|
implicitHeight: 3
|
||||||
width: parent.width
|
width: parent.width
|
||||||
model: node.chunks
|
model: node ? node.chunks : undefined
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -249,7 +249,7 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 3
|
spacing: 3
|
||||||
Repeater {
|
Repeater {
|
||||||
model: node.attributes
|
model: node ? node.attributes : undefined
|
||||||
|
|
||||||
delegate: Loader {
|
delegate: Loader {
|
||||||
id: outputLoader
|
id: outputLoader
|
||||||
|
@ -276,7 +276,7 @@ Item {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: 3
|
spacing: 3
|
||||||
Repeater {
|
Repeater {
|
||||||
model: node.attributes
|
model: node ? node.attributes : undefined
|
||||||
delegate: Loader {
|
delegate: Loader {
|
||||||
active: !object.isOutput && isDisplayableAsPin(object)
|
active: !object.isOutput && isDisplayableAsPin(object)
|
||||||
width: inputs.width
|
width: inputs.width
|
||||||
|
|
Loading…
Add table
Reference in a new issue