Helpviewer/CookieJar/CookieModel.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
diff -r 1b59c4ba121e -r 8cd4d08fa9f6 Helpviewer/CookieJar/CookieModel.py
--- a/Helpviewer/CookieJar/CookieModel.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/Helpviewer/CookieJar/CookieModel.py	Fri Mar 11 16:51:57 2011 +0100
@@ -10,11 +10,12 @@
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
+
 class CookieModel(QAbstractTableModel):
     """
     Class implementing the cookie model.
     """
-    def __init__(self, cookieJar, parent = None):
+    def __init__(self, cookieJar, parent=None):
         """
         Constructor
         
@@ -24,12 +25,12 @@
         QAbstractTableModel.__init__(self, parent)
         
         self.__headers = [
-            self.trUtf8("Website"), 
-            self.trUtf8("Name"), 
-            self.trUtf8("Path"), 
-            self.trUtf8("Secure"), 
-            self.trUtf8("Expires"), 
-            self.trUtf8("Contents"), 
+            self.trUtf8("Website"),
+            self.trUtf8("Name"),
+            self.trUtf8("Path"),
+            self.trUtf8("Secure"),
+            self.trUtf8("Expires"),
+            self.trUtf8("Contents"),
         ]
         self.__cookieJar = cookieJar
         self.__cookieJar.cookiesChanged.connect(self.__cookiesChanged)
@@ -96,7 +97,7 @@
         
         return None
     
-    def columnCount(self, parent = QModelIndex()):
+    def columnCount(self, parent=QModelIndex()):
         """
         Public method to get the number of columns of the model.
         
@@ -108,7 +109,7 @@
         else:
             return len(self.__headers)
     
-    def rowCount(self, parent = QModelIndex()):
+    def rowCount(self, parent=QModelIndex()):
         """
         Public method to get the number of rows of the model.
         
@@ -120,7 +121,7 @@
         else:
             return len(self.__cookieJar.cookies())
     
-    def removeRows(self, row, count, parent = QModelIndex()):
+    def removeRows(self, row, count, parent=QModelIndex()):
         """
         Public method to remove entries from the model.
         

eric ide

mercurial