From 384bdf5f033ba1453efdbb8baf43cdaa9049c9df Mon Sep 17 00:00:00 2001 From: Blaine Date: Thu, 18 Jun 2020 14:27:19 +0530 Subject: fix line updation --- src/main/python/shapes/line.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/python/shapes/line.py') diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py index c893fe6..6883662 100644 --- a/src/main/python/shapes/line.py +++ b/src/main/python/shapes/line.py @@ -1008,8 +1008,9 @@ class Line(QGraphicsPathItem): action = contextMenu.exec_(event.screenPos()) # check for label action and add text label as child if action == addLableAction: - print(event.scenePos(), event.pos()) - self.label.append(LineLabel(event.scenePos(), self)) # text label as child + label = LineLabel(event.scenePos(), self) + self.label.append(label) # text label as child + self.scene().labelAdded.emit(label) def __getstate__(self): return { -- cgit