Debugger/WatchPointViewer.py

changeset 5653
c023821bb25f
parent 5389
9b1c800daff3
child 5736
000ea446ff4b
equal deleted inserted replaced
5652:d1b65f380408 5653:c023821bb25f
219 """ 219 """
220 for index in self.selectedIndexes(): 220 for index in self.selectedIndexes():
221 self.__setRowSelected(index, False) 221 self.__setRowSelected(index, False)
222 222
223 def __findDuplicates(self, cond, special, showMessage=False, 223 def __findDuplicates(self, cond, special, showMessage=False,
224 index=QModelIndex()): 224 index=None):
225 """ 225 """
226 Private method to check, if an entry already exists. 226 Private method to check, if an entry already exists.
227 227
228 @param cond condition to check (string) 228 @param cond condition to check (string)
229 @param special special condition to check (string) 229 @param special special condition to check (string)
231 if a duplicate entry is found (boolean) 231 if a duplicate entry is found (boolean)
232 @param index index that should not be considered duplicate 232 @param index index that should not be considered duplicate
233 (QModelIndex) 233 (QModelIndex)
234 @return flag indicating a duplicate entry (boolean) 234 @return flag indicating a duplicate entry (boolean)
235 """ 235 """
236 if index is None:
237 index = QModelIndex()
236 idx = self.__model.getWatchPointIndex(cond, special) 238 idx = self.__model.getWatchPointIndex(cond, special)
237 duplicate = idx.isValid() and \ 239 duplicate = idx.isValid() and \
238 idx.internalPointer() != index.internalPointer() 240 idx.internalPointer() != index.internalPointer()
239 if showMessage and duplicate: 241 if showMessage and duplicate:
240 if not special: 242 if not special:

eric ide

mercurial