Helpviewer/CookieJar/CookieExceptionsModel.py

changeset 3656
441956d8fce5
parent 3484
645c12de6b0c
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
7 Module implementing the cookie exceptions model. 7 Module implementing the cookie exceptions 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 CookieExceptionsModel(QAbstractTableModel): 16 class CookieExceptionsModel(QAbstractTableModel):
17 """ 17 """
18 Class implementing the cookie exceptions model. 18 Class implementing the cookie exceptions model.
225 if otherRule in removeList1: 225 if otherRule in removeList1:
226 removeList1.remove(otherRule) 226 removeList1.remove(otherRule)
227 if otherRule in removeList2: 227 if otherRule in removeList2:
228 removeList2.remove(otherRule) 228 removeList2.remove(otherRule)
229 229
230 self.reset() 230 self.beginResetModel()
231 self.endResetModel()

eric ide

mercurial