Helpviewer/CookieJar/CookieModel.py

changeset 3656
441956d8fce5
parent 3484
645c12de6b0c
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
7 Module implementing the cookie model. 7 Module implementing the cookie model.
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 from PyQt4.QtCore import Qt, QAbstractTableModel, QSize, QModelIndex 12 from PyQt5.QtCore import Qt, QAbstractTableModel, QSize, QModelIndex
13 from PyQt4.QtGui import QFont, QFontMetrics 13 from PyQt5.QtGui import QFont, QFontMetrics
14 14
15 15
16 class CookieModel(QAbstractTableModel): 16 class CookieModel(QAbstractTableModel):
17 """ 17 """
18 Class implementing the cookie model. 18 Class implementing the cookie model.
146 146
147 def __cookiesChanged(self): 147 def __cookiesChanged(self):
148 """ 148 """
149 Private slot handling changes of the cookies list in the cookie jar. 149 Private slot handling changes of the cookies list in the cookie jar.
150 """ 150 """
151 self.reset() 151 self.beginResetModel()
152 self.endResetModel()

eric ide

mercurial