[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:
Yann Lanthony 2018-07-18 22:43:57 +02:00
parent ca712ef2aa
commit 0128cd56f0
5 changed files with 126 additions and 3 deletions

View file

@ -442,6 +442,14 @@ ApplicationWindow {
node: graphEditor.selectedNode
// Make AttributeEditor readOnly when computing
readOnly: _reconstruction.computing
onUpgradeRequest: {
var delegate = graphEditor.nodeDelegate(node.name)
var posX = delegate.x
var posY = delegate.y
_reconstruction.upgradeNode(node)
graphEditor.moveNode(node.name, posX, posY)
}
}
}
}