diff options
author | Blaine | 2020-06-18 14:27:19 +0530 |
---|---|---|
committer | Blaine | 2020-06-18 14:27:19 +0530 |
commit | 384bdf5f033ba1453efdbb8baf43cdaa9049c9df (patch) | |
tree | 0879368bf7b546a2831e77ea4a722e8981873e4b /src/main | |
parent | 4d1cb634fb37302e96cab95dafbd8f14f2bec852 (diff) | |
download | Chemical-PFD-384bdf5f033ba1453efdbb8baf43cdaa9049c9df.tar.gz Chemical-PFD-384bdf5f033ba1453efdbb8baf43cdaa9049c9df.tar.bz2 Chemical-PFD-384bdf5f033ba1453efdbb8baf43cdaa9049c9df.zip |
fix line updation
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/python/shapes/line.py | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |