--- 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)