203 """ |
203 """ |
204 Private slot to clear the selection. |
204 Private slot to clear the selection. |
205 """ |
205 """ |
206 for index in self.selectedIndexes(): |
206 for index in self.selectedIndexes(): |
207 self.__setRowSelected(index, False) |
207 self.__setRowSelected(index, False) |
208 |
208 |
209 def __findDuplicates(self, cond, special, showMessage = False, index = QModelIndex()): |
209 def __findDuplicates(self, cond, special, showMessage = False, index = QModelIndex()): |
210 """ |
210 """ |
211 Private method to check, if an entry already exists. |
211 Private method to check, if an entry already exists. |
212 |
212 |
213 @param cond condition to check (string) |
213 @param cond condition to check (string) |
232 self.trUtf8("Watch expression already exists"), |
232 self.trUtf8("Watch expression already exists"), |
233 msg) |
233 msg) |
234 |
234 |
235 return duplicate |
235 return duplicate |
236 |
236 |
237 def __clearSelection(self): |
|
238 """ |
|
239 Private slot to clear the selection. |
|
240 """ |
|
241 for index in self.selectedIndexes(): |
|
242 self.__setRowSelected(index, False) |
|
243 |
|
244 def __addWatchPoint(self): |
237 def __addWatchPoint(self): |
245 """ |
238 """ |
246 Private slot to handle the add watch expression context menu entry. |
239 Private slot to handle the add watch expression context menu entry. |
247 """ |
240 """ |
248 dlg = EditWatchpointDialog(("", False, True, 0, ""), self) |
241 dlg = EditWatchpointDialog(("", False, True, 0, ""), self) |
386 """ |
379 """ |
387 idxList = [] |
380 idxList = [] |
388 for index in self.selectedIndexes(): |
381 for index in self.selectedIndexes(): |
389 sindex = self.__toSourceIndex(index) |
382 sindex = self.__toSourceIndex(index) |
390 if sindex.isValid() and index.column() == 0: |
383 if sindex.isValid() and index.column() == 0: |
391 lastrow = index.row() |
|
392 idxList.append(sindex) |
384 idxList.append(sindex) |
393 self.__model.deleteWatchPoints(idxList) |
385 self.__model.deleteWatchPoints(idxList) |
394 |
386 |
395 def __showBackMenu(self): |
387 def __showBackMenu(self): |
396 """ |
388 """ |