Helpviewer/CookieJar/CookieExceptionsModel.py

changeset 668
b0061a6f7484
parent 13
1af94a91f439
child 791
9ec2ac20e54e
equal deleted inserted replaced
666:fdd568d3533d 668:b0061a6f7484
117 def rowCount(self, parent = QModelIndex()): 117 def rowCount(self, parent = QModelIndex()):
118 """ 118 """
119 Public method to get the number of rows of the model. 119 Public method to get the number of rows of the model.
120 120
121 @param parent parent index (QModelIndex) 121 @param parent parent index (QModelIndex)
122 @return number of columns (integer) 122 @return number of rows (integer)
123 """ 123 """
124 if parent.isValid() or self.__cookieJar is None: 124 if parent.isValid() or self.__cookieJar is None:
125 return 0 125 return 0
126 else: 126 else:
127 return len(self.__allowedCookies) + \ 127 return len(self.__allowedCookies) + \

eric ide

mercurial