IconEditor/IconEditorWindow.py

changeset 1507
9225700cbff5
parent 1131
7781e396c903
child 1509
c0b5e693b0eb
--- a/IconEditor/IconEditorWindow.py	Sat Dec 24 15:15:36 2011 +0100
+++ b/IconEditor/IconEditorWindow.py	Mon Dec 26 14:58:44 2011 +0100
@@ -1218,3 +1218,19 @@
         Private slot called in to enter Whats This mode.
         """
         QWhatsThis.enterWhatsThisMode()
+    
+    def wheelEvent(self, evt):
+        """
+        Protected method to handle wheel events.
+        
+        @param evt reference to the wheel event (QWheelEvent)
+        """
+        if evt.modifiers() & Qt.ControlModifier:
+            if evt.delta()< 0:
+                self.__zoomOut()
+            else:
+                self.__zoomIn()
+            evt.accept()
+            return
+        
+        super().wheelEvent(evt)

eric ide

mercurial