mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-27 15:07:20 +02:00
[ui] add CompatibilityBadge on CompatibilityNodes
* add badge icon on nodes in GraphEditor * add badge banner in AttributeEditor with upgrade button when available
This commit is contained in:
parent
ca712ef2aa
commit
0128cd56f0
5 changed files with 126 additions and 3 deletions
|
@ -6,10 +6,12 @@ import Utils 1.0
|
|||
|
||||
Item {
|
||||
id: root
|
||||
property variant node: object
|
||||
property variant node
|
||||
property bool readOnly: false
|
||||
property color baseColor: "#607D8B"
|
||||
property color baseColor: defaultColor
|
||||
property color shadowColor: "black"
|
||||
readonly property bool isCompatibilityNode: node.hasOwnProperty("compatibilityIssue")
|
||||
readonly property color defaultColor: isCompatibilityNode ? "#444" : "#607D8B"
|
||||
|
||||
signal pressed(var mouse)
|
||||
signal doubleClicked(var mouse)
|
||||
|
@ -178,4 +180,19 @@ Item {
|
|||
}
|
||||
Item { width: 1; height: 2}
|
||||
}
|
||||
|
||||
// CompatibilityBadge icon for CompatibilityNodes
|
||||
Loader {
|
||||
active: root.isCompatibilityNode
|
||||
anchors {
|
||||
right: parent.right
|
||||
top: parent.top
|
||||
margins: -4
|
||||
}
|
||||
sourceComponent: CompatibilityBadge {
|
||||
sourceComponent: iconDelegate
|
||||
canUpgrade: root.node.canUpgrade
|
||||
issueDetails: root.node.issueDetails
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue