Helpviewer/History/HistoryModel.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/Helpviewer/History/HistoryModel.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Helpviewer/History/HistoryModel.py	Fri Mar 11 16:51:57 2011 +0100
@@ -11,6 +11,7 @@
 
 import Helpviewer.HelpWindow
 
+
 class HistoryModel(QAbstractTableModel):
     """
     Class implementing the history model.
@@ -22,7 +23,7 @@
     TitleRole = Qt.UserRole + 5
     MaxRole = TitleRole
     
-    def __init__(self, historyManager, parent = None):
+    def __init__(self, historyManager, parent=None):
         """
         Constructor
         
@@ -34,8 +35,8 @@
         self.__historyManager = historyManager
         
         self.__headers = [
-            self.trUtf8("Title"), 
-            self.trUtf8("Address"), 
+            self.trUtf8("Title"),
+            self.trUtf8("Address"),
         ]
         
         self.__historyManager.historyReset.connect(self.historyReset)
@@ -65,7 +66,7 @@
         idx = self.index(row, 0)
         self.dataChanged.emit(idx, idx)
     
-    def headerData(self, section, orientation, role = Qt.DisplayRole):
+    def headerData(self, section, orientation, role=Qt.DisplayRole):
         """
         Public method to get the header data.
         
@@ -81,7 +82,7 @@
                 pass
         return QAbstractTableModel.headerData(self, section, orientation, role)
     
-    def data(self, index, role = Qt.DisplayRole):
+    def data(self, index, role=Qt.DisplayRole):
         """
         Public method to get data from the model.
         
@@ -115,7 +116,7 @@
         
         return None
     
-    def columnCount(self, parent = QModelIndex()):
+    def columnCount(self, parent=QModelIndex()):
         """
         Public method to get the number of columns.
         
@@ -127,7 +128,7 @@
         else:
             return len(self.__headers)
     
-    def rowCount(self, parent = QModelIndex()):
+    def rowCount(self, parent=QModelIndex()):
         """
         Public method to determine the number of rows.
         
@@ -139,7 +140,7 @@
         else:
             return len(self.__historyManager.history())
     
-    def removeRows(self, row, count, parent = QModelIndex()):
+    def removeRows(self, row, count, parent=QModelIndex()):
         """
         Public method to remove history entries from the model.
         

eric ide

mercurial