aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/glyphView.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/defconQt/glyphView.py')
-rw-r--r--Lib/defconQt/glyphView.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/defconQt/glyphView.py b/Lib/defconQt/glyphView.py
index 29255e2..87232c3 100644
--- a/Lib/defconQt/glyphView.py
+++ b/Lib/defconQt/glyphView.py
@@ -2367,10 +2367,12 @@ class GlyphView(QGraphicsView):
'''
def wheelEvent(self, event):
- factor = pow(1.2, event.angleDelta().y() / 120.0)
- event.accept()
-
- self.scale(factor, factor)
+ if event.modifiers() & Qt.ControlModifier:
+ factor = pow(1.2, event.angleDelta().y() / 120.0)
+ self.scale(factor, factor)
+ event.accept()
+ else:
+ super().wheelEvent(event)
def scaleElements(self):
# TODO: stop displaying SimpleTextItems at certains sizes, maybe anchor