summaryrefslogtreecommitdiff
path: root/src/main/python/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils')
-rw-r--r--src/main/python/utils/canvas.py4
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)