Helpviewer/History/HistoryModel.py

changeset 3656
441956d8fce5
parent 3484
645c12de6b0c
child 4021
195a471c327b
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
7 Module implementing the history model. 7 Module implementing the history 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, QModelIndex, QUrl 12 from PyQt5.QtCore import Qt, QAbstractTableModel, QModelIndex, QUrl
13 13
14 import Helpviewer.HelpWindow 14 import Helpviewer.HelpWindow
15 15
16 16
17 class HistoryModel(QAbstractTableModel): 17 class HistoryModel(QAbstractTableModel):
49 49
50 def historyReset(self): 50 def historyReset(self):
51 """ 51 """
52 Public slot to reset the model. 52 Public slot to reset the model.
53 """ 53 """
54 self.reset() 54 self.beginResetModel()
55 self.endResetModel()
55 56
56 def entryAdded(self): 57 def entryAdded(self):
57 """ 58 """
58 Public slot to handle the addition of a history entry. 59 Public slot to handle the addition of a history entry.
59 """ 60 """

eric ide

mercurial