Helpviewer/History/HistoryModel.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
27 27
28 def __init__(self, historyManager, parent=None): 28 def __init__(self, historyManager, parent=None):
29 """ 29 """
30 Constructor 30 Constructor
31 31
32 @param historyManager reference to the history manager object (HistoryManager) 32 @param historyManager reference to the history manager object
33 (HistoryManager)
33 @param parent reference to the parent object (QObject) 34 @param parent reference to the parent object (QObject)
34 """ 35 """
35 super(HistoryModel, self).__init__(parent) 36 super(HistoryModel, self).__init__(parent)
36 37
37 self.__historyManager = historyManager 38 self.__historyManager = historyManager
146 """ 147 """
147 Public method to remove history entries from the model. 148 Public method to remove history entries from the model.
148 149
149 @param row row of the first history entry to remove (integer) 150 @param row row of the first history entry to remove (integer)
150 @param count number of history entries to remove (integer) 151 @param count number of history entries to remove (integer)
151 @param index of the parent entry (QModelIndex) 152 @param parent index of the parent entry (QModelIndex)
152 @return flag indicating successful removal (boolean) 153 @return flag indicating successful removal (boolean)
153 """ 154 """
154 if parent.isValid(): 155 if parent.isValid():
155 return False 156 return False
156 157

eric ide

mercurial