eric6/Debugger/WatchPointViewer.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
258 """ 258 """
259 Private slot to handle the add watch expression context menu entry. 259 Private slot to handle the add watch expression context menu entry.
260 """ 260 """
261 from .EditWatchpointDialog import EditWatchpointDialog 261 from .EditWatchpointDialog import EditWatchpointDialog
262 dlg = EditWatchpointDialog(("", False, True, 0, ""), self) 262 dlg = EditWatchpointDialog(("", False, True, 0, ""), self)
263 if dlg.exec_() == QDialog.Accepted: 263 if dlg.exec() == QDialog.Accepted:
264 cond, temp, enabled, ignorecount, special = dlg.getData() 264 cond, temp, enabled, ignorecount, special = dlg.getData()
265 if not self.__findDuplicates(cond, special, True): 265 if not self.__findDuplicates(cond, special, True):
266 self.__model.addWatchPoint(cond, special, 266 self.__model.addWatchPoint(cond, special,
267 (temp, enabled, ignorecount)) 267 (temp, enabled, ignorecount))
268 self.__resizeColumns() 268 self.__resizeColumns()
300 cond, special, temp, enabled, count = wp[:5] 300 cond, special, temp, enabled, count = wp[:5]
301 301
302 from .EditWatchpointDialog import EditWatchpointDialog 302 from .EditWatchpointDialog import EditWatchpointDialog
303 dlg = EditWatchpointDialog( 303 dlg = EditWatchpointDialog(
304 (cond, temp, enabled, count, special), self) 304 (cond, temp, enabled, count, special), self)
305 if dlg.exec_() == QDialog.Accepted: 305 if dlg.exec() == QDialog.Accepted:
306 cond, temp, enabled, count, special = dlg.getData() 306 cond, temp, enabled, count, special = dlg.getData()
307 if not self.__findDuplicates(cond, special, True, sindex): 307 if not self.__findDuplicates(cond, special, True, sindex):
308 self.__model.setWatchPointByIndex( 308 self.__model.setWatchPointByIndex(
309 sindex, cond, special, (temp, enabled, count)) 309 sindex, cond, special, (temp, enabled, count))
310 self.__resizeColumns() 310 self.__resizeColumns()

eric ide

mercurial