--- a/Debugger/WatchPointModel.py Sun Sep 30 17:23:16 2012 +0200 +++ b/Debugger/WatchPointModel.py Sun Sep 30 19:08:45 2012 +0200 @@ -7,7 +7,7 @@ Module implementing the Watch expression model. """ -from PyQt4.QtCore import pyqtSignal, Qt, QAbstractItemModel, QModelIndex +from PyQt4.QtCore import pyqtSignal, Qt, QAbstractItemModel, QModelIndex, qVersion class WatchPointModel(QAbstractItemModel): @@ -191,7 +191,10 @@ for value in [cond, special] + list(properties): self.watchpoints[row][i] = value i += 1 - self.dataChanged.emit(index1, index2) + if qVersion() >= "5.0.0": + self.dataChanged.emit(index1, index2, []) + else: + self.dataChanged.emit(index1, index2) def setWatchPointEnabledByIndex(self, index, enabled): """ @@ -206,7 +209,10 @@ index1 = self.createIndex(row, col, self.watchpoints[row]) self.dataAboutToBeChanged.emit(index1, index1) self.watchpoints[row][col] = enabled - self.dataChanged.emit(index1, index1) + if qVersion() >= "5.0.0": + self.dataChanged.emit(index1, index1, []) + else: + self.dataChanged.emit(index1, index1) def deleteWatchPointByIndex(self, index): """