From cadf8eade6e9d1f5f1a1fe3205bccef41ca5e3e8 Mon Sep 17 00:00:00 2001 From: Blaine Date: Fri, 19 Jun 2020 11:43:58 +0530 Subject: undo add 2 --- src/main/python/utils/undo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/python/utils/undo.py b/src/main/python/utils/undo.py index 8426494..92a8de8 100644 --- a/src/main/python/utils/undo.py +++ b/src/main/python/utils/undo.py @@ -26,7 +26,7 @@ class addCommand(QUndoCommand): self.scene = scene self.diagramItem = addItem self.itemPos = addItem.pos() - self.setText(f"Add {objectName(self.diagramItem)}") + self.setText(f"Add {objectName(self.diagramItem)} at {self.itemPos.x()}, {self.itemPos.y()}") def undo(self): self.scene.removeItem(self.diagramItem) -- cgit