mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-29 06:27:35 +02:00
Delete old readOnly property on GraphEditor
This commit is contained in:
parent
c88881e198
commit
70509f5dd2
2 changed files with 1 additions and 5 deletions
|
@ -14,7 +14,6 @@ Item {
|
||||||
property variant uigraph: null /// Meshroom ui graph (UIGraph)
|
property variant uigraph: null /// Meshroom ui graph (UIGraph)
|
||||||
readonly property variant graph: uigraph ? uigraph.graph : null /// core graph contained in ui graph
|
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 variant nodeTypesModel: null /// the list of node types that can be instantiated
|
||||||
property bool readOnly: false
|
|
||||||
|
|
||||||
property var _attributeToDelegate: ({})
|
property var _attributeToDelegate: ({})
|
||||||
|
|
||||||
|
@ -270,7 +269,7 @@ Item {
|
||||||
|
|
||||||
if(canEdit && event.button == Qt.RightButton)
|
if(canEdit && event.button == Qt.RightButton)
|
||||||
{
|
{
|
||||||
if(!root.readOnly && event.modifiers & Qt.AltModifier) {
|
if(event.modifiers & Qt.AltModifier) {
|
||||||
uigraph.removeEdge(edge)
|
uigraph.removeEdge(edge)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -493,8 +492,6 @@ Item {
|
||||||
onExited: uigraph.hoveredNode = null
|
onExited: uigraph.hoveredNode = null
|
||||||
|
|
||||||
Keys.onDeletePressed: {
|
Keys.onDeletePressed: {
|
||||||
if(root.readOnly)
|
|
||||||
return;
|
|
||||||
if(event.modifiers == Qt.AltModifier)
|
if(event.modifiers == Qt.AltModifier)
|
||||||
uigraph.removeNodesFrom(node)
|
uigraph.removeNodesFrom(node)
|
||||||
else
|
else
|
||||||
|
|
|
@ -581,7 +581,6 @@ ApplicationWindow {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
uigraph: _reconstruction
|
uigraph: _reconstruction
|
||||||
nodeTypesModel: _nodeTypes
|
nodeTypesModel: _nodeTypes
|
||||||
readOnly: graphLocked
|
|
||||||
|
|
||||||
onNodeDoubleClicked: {
|
onNodeDoubleClicked: {
|
||||||
if(node.nodeType === "StructureFromMotion")
|
if(node.nodeType === "StructureFromMotion")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue