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) |