283 """ |
283 """ |
284 Private slot to edit a watch expression. |
284 Private slot to edit a watch expression. |
285 |
285 |
286 @param index index of watch expression to be edited (QModelIndex) |
286 @param index index of watch expression to be edited (QModelIndex) |
287 """ |
287 """ |
|
288 from .EditWatchpointDialog import EditWatchpointDialog |
|
289 |
288 sindex = self.__toSourceIndex(index) |
290 sindex = self.__toSourceIndex(index) |
289 if sindex.isValid(): |
291 if sindex.isValid(): |
290 wp = self.__model.getWatchPointByIndex(sindex) |
292 wp = self.__model.getWatchPointByIndex(sindex) |
291 if not wp: |
293 if not wp: |
292 return |
294 return |
293 |
295 |
294 cond, special, temp, enabled, count = wp[:5] |
296 cond, special, temp, enabled, count = wp[:5] |
295 |
|
296 from .EditWatchpointDialog import EditWatchpointDialog |
|
297 |
297 |
298 dlg = EditWatchpointDialog((cond, temp, enabled, count, special), self) |
298 dlg = EditWatchpointDialog((cond, temp, enabled, count, special), self) |
299 if dlg.exec() == QDialog.DialogCode.Accepted: |
299 if dlg.exec() == QDialog.DialogCode.Accepted: |
300 cond, temp, enabled, count, special = dlg.getData() |
300 cond, temp, enabled, count, special = dlg.getData() |
301 if not self.__findDuplicates(cond, special, True, sindex): |
301 if not self.__findDuplicates(cond, special, True, sindex): |