mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
Fix display of Compatibility nodes
"isComputable" is renamed as "isComputableType": this function is only about the Meshroom Node type and not about the computability in the current context. Even if we are in compatibility mode, we may has access to the nodeDesc and its information about the node type.
This commit is contained in:
parent
2ad55352ee
commit
8be8ea5703
6 changed files with 50 additions and 40 deletions
|
@ -28,7 +28,7 @@ Item {
|
|||
property point position: Qt.point(x, y)
|
||||
/// Styling
|
||||
property color shadowColor: "#cc000000"
|
||||
readonly property color defaultColor: isCompatibilityNode ? "#444" : !node.isComputable ? "#BA3D69" : activePalette.base
|
||||
readonly property color defaultColor: isCompatibilityNode ? "#444" : !node.isComputableType ? "#BA3D69" : activePalette.base
|
||||
property color baseColor: defaultColor
|
||||
|
||||
property point mousePosition: Qt.point(mouseArea.mouseX, mouseArea.mouseY)
|
||||
|
@ -327,7 +327,7 @@ Item {
|
|||
text: MaterialIcons.visibility
|
||||
padding: 2
|
||||
font.pointSize: 7
|
||||
property bool displayable: !node.isComputable || (node.chunks.count > 0 && (["SUCCESS"].includes(node.globalStatus)))
|
||||
property bool displayable: !node.isComputableType || (node.chunks.count > 0 && (["SUCCESS"].includes(node.globalStatus)))
|
||||
color: displayable ? palette.text : Qt.darker(palette.text, 1.8)
|
||||
|
||||
ToolTip {
|
||||
|
@ -363,19 +363,19 @@ Item {
|
|||
}
|
||||
|
||||
// Node Chunks
|
||||
NodeChunks {
|
||||
visible: node.isComputable
|
||||
defaultColor: Colors.sysPalette.mid
|
||||
implicitHeight: 3
|
||||
width: parent.width
|
||||
model: node ? node.chunks : undefined
|
||||
NodeChunks {
|
||||
visible: node.isComputableType
|
||||
defaultColor: Colors.sysPalette.mid
|
||||
implicitHeight: 3
|
||||
width: parent.width
|
||||
model: node ? node.chunks : undefined
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Colors.sysPalette.mid
|
||||
z: -1
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Colors.sysPalette.mid
|
||||
z: -1
|
||||
}
|
||||
}
|
||||
|
||||
// Vertical Spacer
|
||||
Item { width: parent.width; height: 2 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue