Skip to content

Commit cca0bb1

Browse files
committed
[ui] Graph: Remove unused moveNodesBy function
With Selection approach on children of backdrop, selected nodes can directly be moved without having the need for a specific function
1 parent 499c994 commit cca0bb1

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

meshroom/ui/graph.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,6 @@ def moveSelectedNodesBy(self, offset: QPoint):
735735
position = Position(node.x + offset.x(), node.y + offset.y())
736736
self.moveNode(node, position)
737737

738-
@Slot(list, QPoint)
739-
def moveNodesBy(self, nodes, offset: QPoint):
740-
"""Move all the selected nodes by the given `offset`."""
741-
742-
with self.groupedGraphModification("Move Nodes"):
743-
for node in nodes:
744-
position = Position(node.x + offset.x(), node.y + offset.y())
745-
self.moveNode(node, position)
746-
747738
@Slot()
748739
def removeSelectedNodes(self):
749740
"""Remove selected nodes from the graph."""

0 commit comments

Comments
 (0)