Fixed an issue in wheel event handler of E5MapWidget.

Sun, 13 Jul 2014 16:29:16 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 Jul 2014 16:29:16 +0200
changeset 3698
3febb7d8b2dc
parent 3697
c947a7eaace4
child 3699
c30e78684ad6

Fixed an issue in wheel event handler of E5MapWidget.

E5Gui/E5MapWidget.py file | annotate | diff | comparison | revisions
diff -r c947a7eaace4 -r 3febb7d8b2dc E5Gui/E5MapWidget.py
--- a/E5Gui/E5MapWidget.py	Sun Jul 13 14:34:44 2014 +0200
+++ b/E5Gui/E5MapWidget.py	Sun Jul 13 16:29:16 2014 +0200
@@ -221,7 +221,8 @@
         """
         if self._master and \
             event.modifiers() == Qt.NoModifier and \
-                event.orientation() == Qt.Vertical:
+                event.angleDelta().x() == 0:
+            # TODO: test angleDelte() with Mac Trackpad
             QCoreApplication.sendEvent(self._master.verticalScrollBar(), event)
     
     def calculateGeometry(self):

eric ide

mercurial