Debugger/BreakPointViewer.py

changeset 5736
000ea446ff4b
parent 5389
9b1c800daff3
child 6034
4f88f70d2cd4
--- a/Debugger/BreakPointViewer.py	Sat May 13 13:46:05 2017 +0200
+++ b/Debugger/BreakPointViewer.py	Sat May 13 16:32:54 2017 +0200
@@ -9,13 +9,15 @@
 
 from __future__ import unicode_literals
 
-from PyQt5.QtCore import pyqtSignal, Qt, qVersion, QItemSelectionModel, \
+from PyQt5.QtCore import pyqtSignal, Qt, QItemSelectionModel, \
     QSortFilterProxyModel
 from PyQt5.QtWidgets import QTreeView, QAbstractItemView, QHeaderView, QMenu, \
     QDialog
 
 from E5Gui.E5Application import e5App
 
+from Globals import qVersionTuple
+
 
 class BreakPointViewer(QTreeView):
     """
@@ -73,7 +75,7 @@
         header = self.header()
         header.setSortIndicator(0, Qt.AscendingOrder)
         header.setSortIndicatorShown(True)
-        if qVersion() >= "5.0.0":
+        if qVersionTuple() >= (5, 0, 0):
             header.setSectionsClickable(True)
         else:
             header.setClickable(True)

eric ide

mercurial