Graphics/UMLGraphicsView.py

branch
maintenance
changeset 5752
1860eca908e4
parent 5680
b93cb6353cc0
parent 5736
000ea446ff4b
child 6050
25a4ddb25ca4
diff -r 54829a44cea5 -r 1860eca908e4 Graphics/UMLGraphicsView.py
--- a/Graphics/UMLGraphicsView.py	Sat May 06 13:44:26 2017 +0200
+++ b/Graphics/UMLGraphicsView.py	Sat Jun 03 13:08:50 2017 +0200
@@ -10,7 +10,7 @@
 from __future__ import unicode_literals
 
 from PyQt5.QtCore import pyqtSignal, Qt, QSignalMapper, QFileInfo, QEvent, \
-    QRectF, qVersion
+    QRectF
 from PyQt5.QtWidgets import QGraphicsView, QAction, QToolBar, QDialog
 from PyQt5.QtPrintSupport import QPrinter, QPrintDialog
 
@@ -25,6 +25,7 @@
 import UI.PixmapCache
 
 import Preferences
+from Globals import qVersionTuple
 
 
 class UMLGraphicsView(E5GraphicsView):
@@ -601,7 +602,7 @@
         @param evt reference to the wheel event (QWheelEvent)
         """
         if evt.modifiers() & Qt.ControlModifier:
-            if qVersion() >= "5.0.0":
+            if qVersionTuple() >= (5, 0, 0):
                 delta = evt.angleDelta().y()
             else:
                 delta = evt.delta()

eric ide

mercurial