diff options
author | Blaine | 2020-06-11 22:53:36 +0530 |
---|---|---|
committer | Blaine | 2020-06-11 22:53:36 +0530 |
commit | c0412bcf3853abeb6911c82aaf35125c25529277 (patch) | |
tree | 6de1ff534fee7df7e2f337f123938a400f4c9100 /src/main/python/utils | |
parent | 737961c33741348a79987efbad35cf78c8d3a613 (diff) | |
download | Chemical-PFD-c0412bcf3853abeb6911c82aaf35125c25529277.tar.gz Chemical-PFD-c0412bcf3853abeb6911c82aaf35125c25529277.tar.bz2 Chemical-PFD-c0412bcf3853abeb6911c82aaf35125c25529277.zip |
fixed context menu
Diffstat (limited to 'src/main/python/utils')
-rw-r--r-- | src/main/python/utils/canvas.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index 88e3c43..480a2e1 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -37,7 +37,11 @@ class canvas(customView): self.painter.setSceneRect(0, 0, *paperSizes[self._canvasSize][self._ppi]) self.parentMdiArea = parentMdiArea self.parentFileWindow = parentFileWindow + self.customContextMenuRequested.connect(self.sideViewContextMenu) + def sideViewContextMenu(self, pos): + self.parentFileWindow.sideViewContextMenu(self.mapTo(self.parentFileWindow, pos)) + def resizeView(self, w, h): #helper function to resize canvas self.painter.setSceneRect(0, 0, w, h) |