Debugger/WatchPointModel.py

changeset 2953
703452a2876f
parent 2302
f29e9405c851
child 2988
f53c03574697
equal deleted inserted replaced
2952:94fc661a54a2 2953:703452a2876f
18 18
19 def __init__(self, parent=None): 19 def __init__(self, parent=None):
20 """ 20 """
21 Constructor 21 Constructor
22 22
23 @param reference to the parent widget (QObject) 23 @param parent reference to the parent widget (QObject)
24 """ 24 """
25 super().__init__(parent) 25 super().__init__(parent)
26 26
27 self.watchpoints = [] 27 self.watchpoints = []
28 self.header = [ 28 self.header = [
41 41
42 def columnCount(self, parent=QModelIndex()): 42 def columnCount(self, parent=QModelIndex()):
43 """ 43 """
44 Public method to get the current column count. 44 Public method to get the current column count.
45 45
46 @param parent index of the parent item (QModelIndex)
46 @return column count (integer) 47 @return column count (integer)
47 """ 48 """
48 return len(self.header) 49 return len(self.header)
49 50
50 def rowCount(self, parent=QModelIndex()): 51 def rowCount(self, parent=QModelIndex()):
51 """ 52 """
52 Public method to get the current row count. 53 Public method to get the current row count.
53 54
55 @param parent index of the parent item (QModelIndex)
54 @return row count (integer) 56 @return row count (integer)
55 """ 57 """
56 # we do not have a tree, parent should always be invalid 58 # we do not have a tree, parent should always be invalid
57 if not parent.isValid(): 59 if not parent.isValid():
58 return len(self.watchpoints) 60 return len(self.watchpoints)

eric ide

mercurial