Debugger/WatchPointViewer.py

changeset 564
b3d966393ba9
parent 539
87f9bce38a44
child 791
9ec2ac20e54e
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
117 """ 117 """
118 if not index.isValid(): 118 if not index.isValid():
119 return 119 return
120 120
121 if selected: 121 if selected:
122 flags = QItemSelectionModel.SelectionFlags(\ 122 flags = QItemSelectionModel.SelectionFlags(
123 QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows) 123 QItemSelectionModel.ClearAndSelect | QItemSelectionModel.Rows)
124 else: 124 else:
125 flags = QItemSelectionModel.SelectionFlags(\ 125 flags = QItemSelectionModel.SelectionFlags(
126 QItemSelectionModel.Deselect | QItemSelectionModel.Rows) 126 QItemSelectionModel.Deselect | QItemSelectionModel.Rows)
127 self.selectionModel().select(index, flags) 127 self.selectionModel().select(index, flags)
128 128
129 def __createPopupMenus(self): 129 def __createPopupMenus(self):
130 """ 130 """
274 if not wp: 274 if not wp:
275 return 275 return
276 276
277 cond, special, temp, enabled, count = wp[:5] 277 cond, special, temp, enabled, count = wp[:5]
278 278
279 dlg = EditWatchpointDialog(\ 279 dlg = EditWatchpointDialog(
280 (cond, temp, enabled, count, special), self) 280 (cond, temp, enabled, count, special), self)
281 if dlg.exec_() == QDialog.Accepted: 281 if dlg.exec_() == QDialog.Accepted:
282 cond, temp, enabled, count, special = dlg.getData() 282 cond, temp, enabled, count, special = dlg.getData()
283 if not self.__findDuplicates(cond, special, True, sindex): 283 if not self.__findDuplicates(cond, special, True, sindex):
284 self.__model.setWatchPointByIndex(sindex, 284 self.__model.setWatchPointByIndex(sindex,

eric ide

mercurial