Delete old readOnly property on GraphEditor

This commit is contained in:
Lee Geertsen 2019-09-11 18:34:33 +02:00 committed by Yann Lanthony
parent c88881e198
commit 70509f5dd2
No known key found for this signature in database
GPG key ID: 519FAE6DF7A70642
2 changed files with 1 additions and 5 deletions

View file

@ -14,7 +14,6 @@ Item {
property variant uigraph: null /// Meshroom ui graph (UIGraph)
readonly property variant graph: uigraph ? uigraph.graph : null /// core graph contained in ui graph
property variant nodeTypesModel: null /// the list of node types that can be instantiated
property bool readOnly: false
property var _attributeToDelegate: ({})
@ -270,7 +269,7 @@ Item {
if(canEdit && event.button == Qt.RightButton)
{
if(!root.readOnly && event.modifiers & Qt.AltModifier) {
if(event.modifiers & Qt.AltModifier) {
uigraph.removeEdge(edge)
}
else {
@ -493,8 +492,6 @@ Item {
onExited: uigraph.hoveredNode = null
Keys.onDeletePressed: {
if(root.readOnly)
return;
if(event.modifiers == Qt.AltModifier)
uigraph.removeNodesFrom(node)
else