176 if not parent.isValid(): |
176 if not parent.isValid(): |
177 return len(self.breakpoints) > 0 |
177 return len(self.breakpoints) > 0 |
178 else: |
178 else: |
179 return False |
179 return False |
180 |
180 |
181 ############################################################################ |
181 ########################################################################### |
182 |
182 |
183 def addBreakPoint(self, fn, line, properties): |
183 def addBreakPoint(self, fn, line, properties): |
184 """ |
184 """ |
185 Public method to add a new breakpoint to the list. |
185 Public method to add a new breakpoint to the list. |
186 |
186 |
281 else: |
281 else: |
282 return [] |
282 return [] |
283 |
283 |
284 def getBreakPointIndex(self, fn, lineno): |
284 def getBreakPointIndex(self, fn, lineno): |
285 """ |
285 """ |
286 Public method to get the index of a breakpoint given by filename and line number. |
286 Public method to get the index of a breakpoint given by filename and |
|
287 line number. |
287 |
288 |
288 @param fn filename of the breakpoint (string) |
289 @param fn filename of the breakpoint (string) |
289 @param lineno line number of the breakpoint (integer) |
290 @param lineno line number of the breakpoint (integer) |
290 @return index (QModelIndex) |
291 @return index (QModelIndex) |
291 """ |
292 """ |