Helpviewer/History/HistoryFilterModel.py

changeset 2126
3744863a534e
parent 2081
b7ccd563eeb6
child 2302
f29e9405c851
--- a/Helpviewer/History/HistoryFilterModel.py	Mon Oct 08 20:56:48 2012 +0200
+++ b/Helpviewer/History/HistoryFilterModel.py	Tue Oct 09 19:20:50 2012 +0200
@@ -7,7 +7,7 @@
 Module implementing the history filter model.
 """
 
-from PyQt4.QtCore import Qt, QDateTime, QModelIndex, qVersion
+from PyQt4.QtCore import Qt, QDateTime, QModelIndex
 from PyQt4.QtGui import QAbstractProxyModel
 
 from .HistoryModel import HistoryModel
@@ -139,12 +139,8 @@
         @param topLeft index of top left data element (QModelIndex)
         @param bottomRight index of bottom right data element (QModelIndex)
         """
-        if qVersion() >= "5.0.0":
-            self.dataChanged.emit(
-                self.mapFromSource(topLeft), self.mapFromSource(bottomRight), [])
-        else:
-            self.dataChanged.emit(
-                self.mapFromSource(topLeft), self.mapFromSource(bottomRight))
+        self.dataChanged.emit(
+            self.mapFromSource(topLeft), self.mapFromSource(bottomRight))
     
     def headerData(self, section, orientation, role=Qt.DisplayRole):
         """

eric ide

mercurial