Skip to content

Commit 1dde0d2

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 068e9fa commit 1dde0d2

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
@@ -730,15 +730,6 @@ def moveSelectedNodesBy(self, offset: QPoint):
730730
position = Position(node.x + offset.x(), node.y + offset.y())
731731
self.moveNode(node, position)
732732

733-
@Slot(list, QPoint)
734-
def moveNodesBy(self, nodes, offset: QPoint):
735-
"""Move all the selected nodes by the given `offset`."""
736-
737-
with self.groupedGraphModification("Move Nodes"):
738-
for node in nodes:
739-
position = Position(node.x + offset.x(), node.y + offset.y())
740-
self.moveNode(node, position)
741-
742733
@Slot()
743734
def removeSelectedNodes(self):
744735
"""Remove selected nodes from the graph."""

0 commit comments

Comments
 (0)