diff options
Diffstat (limited to 'src/main/python/shapes/line.py')
-rw-r--r-- | src/main/python/shapes/line.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py index 516f34d..bbeab30 100644 --- a/src/main/python/shapes/line.py +++ b/src/main/python/shapes/line.py @@ -964,7 +964,10 @@ class Line(QGraphicsPathItem): changeArrowFlag = contextMenu.addAction(str) action = contextMenu.exec_(event.screenPos()) if action == addLableAction: - self.label.append(LineLabel(event.scenePos(), self)) + newLabel = LineLabel(event.scenePos(), self) + self.label.append(newLabel) + self.scene().labelAdded.emit(newLabel) + if action == changeArrowFlag: if str == "Hide Arrow": self.arrowFlag =False |