eric6/E5Gui/E5MapWidget.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 6942
2602857055c5
child 7229
53054eb5b15a
--- a/eric6/E5Gui/E5MapWidget.py	Sun Sep 01 17:44:33 2019 +0200
+++ b/eric6/E5Gui/E5MapWidget.py	Sun Sep 01 19:40:53 2019 +0200
@@ -13,8 +13,6 @@
 from PyQt5.QtGui import QColor, QBrush, QPainter
 from PyQt5.QtWidgets import QWidget, QAbstractScrollArea
 
-from Globals import qVersionTuple
-
 
 class E5MapWidget(QWidget):
     """
@@ -251,10 +249,7 @@
         
         @param event reference to the wheel event (QWheelEvent)
         """
-        if qVersionTuple() >= (5, 0, 0):
-            isVertical = event.angleDelta().x() == 0
-        else:
-            isVertical = event.orientation() == Qt.Vertical
+        isVertical = event.angleDelta().x() == 0
         if self._master and \
             event.modifiers() == Qt.NoModifier and \
                 isVertical:

eric ide

mercurial