src/eric7/Debugger/WatchPointViewer.py

branch
eric7
changeset 11006
a671918232f3
parent 10928
46651e194fbe
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
265 """ 265 """
266 Private slot to handle the add watch expression context menu entry. 266 Private slot to handle the add watch expression context menu entry.
267 """ 267 """
268 from .EditWatchpointDialog import EditWatchpointDialog 268 from .EditWatchpointDialog import EditWatchpointDialog
269 269
270 dlg = EditWatchpointDialog(("", False, True, 0, ""), self) 270 dlg = EditWatchpointDialog(("", False, True, 0, ""), parent=self)
271 if dlg.exec() == QDialog.DialogCode.Accepted: 271 if dlg.exec() == QDialog.DialogCode.Accepted:
272 cond, temp, enabled, ignorecount, special = dlg.getData() 272 cond, temp, enabled, ignorecount, special = dlg.getData()
273 if not self.__findDuplicates(cond, special, True): 273 if not self.__findDuplicates(cond, special, True):
274 self.__model.addWatchPoint(cond, special, (temp, enabled, ignorecount)) 274 self.__model.addWatchPoint(cond, special, (temp, enabled, ignorecount))
275 self.__resizeColumns() 275 self.__resizeColumns()
308 if not wp: 308 if not wp:
309 return 309 return
310 310
311 cond, special, temp, enabled, count = wp[:5] 311 cond, special, temp, enabled, count = wp[:5]
312 312
313 dlg = EditWatchpointDialog((cond, temp, enabled, count, special), self) 313 dlg = EditWatchpointDialog(
314 (cond, temp, enabled, count, special), parent=self
315 )
314 if dlg.exec() == QDialog.DialogCode.Accepted: 316 if dlg.exec() == QDialog.DialogCode.Accepted:
315 cond, temp, enabled, count, special = dlg.getData() 317 cond, temp, enabled, count, special = dlg.getData()
316 if not self.__findDuplicates(cond, special, True, sindex): 318 if not self.__findDuplicates(cond, special, True, sindex):
317 self.__model.setWatchPointByIndex( 319 self.__model.setWatchPointByIndex(
318 sindex, cond, special, (temp, enabled, count) 320 sindex, cond, special, (temp, enabled, count)

eric ide

mercurial