302 Private slot to edit a breakpoint. |
302 Private slot to edit a breakpoint. |
303 |
303 |
304 @param index index of breakpoint to be edited |
304 @param index index of breakpoint to be edited |
305 @type QModelIndex |
305 @type QModelIndex |
306 """ |
306 """ |
|
307 from .EditBreakpointDialog import EditBreakpointDialog |
|
308 |
307 sindex = self.__toSourceIndex(index) |
309 sindex = self.__toSourceIndex(index) |
308 if sindex.isValid(): |
310 if sindex.isValid(): |
309 bp = self.__model.getBreakPointByIndex(sindex) |
311 bp = self.__model.getBreakPointByIndex(sindex) |
310 if not bp: |
312 if not bp: |
311 return |
313 return |
312 |
314 |
313 fn, line, cond, temp, enabled, count = bp[:6] |
315 fn, line, cond, temp, enabled, count = bp[:6] |
314 fnHistory, condHistory = self.__loadRecent() |
316 fnHistory, condHistory = self.__loadRecent() |
315 |
|
316 from .EditBreakpointDialog import EditBreakpointDialog |
|
317 |
317 |
318 dlg = EditBreakpointDialog( |
318 dlg = EditBreakpointDialog( |
319 (fn, line), (cond, temp, enabled, count), condHistory, self, modal=True |
319 (fn, line), (cond, temp, enabled, count), condHistory, self, modal=True |
320 ) |
320 ) |
321 if dlg.exec() == QDialog.DialogCode.Accepted: |
321 if dlg.exec() == QDialog.DialogCode.Accepted: |