--- a/Debugger/VariablesViewer.py Sat May 13 13:46:05 2017 +0200 +++ b/Debugger/VariablesViewer.py Sat May 13 16:32:54 2017 +0200 @@ -13,7 +13,7 @@ except NameError: pass -from PyQt5.QtCore import Qt, QRegExp, qVersion, QCoreApplication +from PyQt5.QtCore import Qt, QRegExp, QCoreApplication from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem, QAbstractItemView, \ QMenu @@ -23,6 +23,7 @@ import Preferences import Utilities +from Globals import qVersionTuple class VariableItem(QTreeWidgetItem): @@ -378,7 +379,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)