src/eric7/Debugger/BreakPointModel.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 11037
adfda913834a
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
71 71
72 def columnCount(self, parent=None): # noqa: U100 72 def columnCount(self, parent=None): # noqa: U100
73 """ 73 """
74 Public method to get the current column count. 74 Public method to get the current column count.
75 75
76 @param parent reference to parent index (Unused) 76 @param parent reference to parent index (unused)
77 @type QModelIndex 77 @type QModelIndex
78 @return column count 78 @return column count
79 @rtype int 79 @rtype int
80 """ 80 """
81 return len(BreakPointModel.Header) 81 return len(BreakPointModel.Header)
151 151
152 @param index index of the changed data 152 @param index index of the changed data
153 @type QModelIndex 153 @type QModelIndex
154 @param value value of the changed data 154 @param value value of the changed data
155 @type any 155 @type any
156 @param role role of the changed data 156 @param role role of the changed data (unused)
157 @type Qt.ItemDataRole 157 @type Qt.ItemDataRole
158 @return flag indicating success 158 @return flag indicating success
159 @rtype bool 159 @rtype bool
160 """ 160 """
161 if ( 161 if (
230 ): 230 ):
231 return QModelIndex() 231 return QModelIndex()
232 232
233 return self.createIndex(row, column, self.breakpoints[row]) 233 return self.createIndex(row, column, self.breakpoints[row])
234 234
235 def parent(self, index): # noqa: U100 235 def parent(self, _index):
236 """ 236 """
237 Public method to get the parent index. 237 Public method to get the parent index.
238 238
239 @param index index of item to get parent 239 @param _index index of item to get parent (unused)
240 @type QModelIndex 240 @type QModelIndex
241 @return index of parent 241 @return index of parent
242 @rtype QModelIndex 242 @rtype QModelIndex
243 """ 243 """
244 return QModelIndex() 244 return QModelIndex()

eric ide

mercurial