mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-07 13:21:56 +02:00
[ui] expose add/removeEdge as Slots
This commit is contained in:
parent
7ddf86e6bc
commit
d34d6f27ec
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,14 @@ class Reconstruction(QObject):
|
|||
def removeNode(self, node):
|
||||
self._undoStack.tryAndPush(commands.RemoveNodeCommand(self._graph, node))
|
||||
|
||||
@Slot(graph.Attribute, graph.Attribute)
|
||||
def addEdge(self, src, dst):
|
||||
self._undoStack.tryAndPush(commands.AddEdgeCommand(self._graph, src, dst))
|
||||
|
||||
@Slot(graph.Edge)
|
||||
def removeEdge(self, edge):
|
||||
self._undoStack.tryAndPush(commands.RemoveEdgeCommand(self._graph, edge))
|
||||
|
||||
@Slot(graph.Attribute, "QVariant")
|
||||
def setAttribute(self, attribute, value):
|
||||
self._undoStack.tryAndPush(commands.SetAttributeCommand(self._graph, attribute, value))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue