262 self.__checkTopLevelItems() |
262 self.__checkTopLevelItems() |
263 self.__resort() |
263 self.__resort() |
264 self.__resizeColumns() |
264 self.__resizeColumns() |
265 |
265 |
266 @pyqtSlot(QTreeWidgetItem, int) |
266 @pyqtSlot(QTreeWidgetItem, int) |
267 def __taskItemActivated(self, itm, col): |
267 def __taskItemActivated(self, itm, _col): |
268 """ |
268 """ |
269 Private slot to handle the activation of an item. |
269 Private slot to handle the activation of an item. |
270 |
270 |
271 @param itm reference to the activated item |
271 @param itm reference to the activated item |
272 @type QTreeWidgetItem |
272 @type QTreeWidgetItem |
273 @param col column the item was activated in |
273 @param _col column the item was activated in (unused) |
274 @type int |
274 @type int |
275 """ |
275 """ |
276 if ( |
276 if ( |
277 not self.__activating |
277 not self.__activating |
278 and itm is not self.__extractedItem |
278 and itm is not self.__extractedItem |
858 break |
858 break |
859 |
859 |
860 fn = os.path.join(ppath, file) |
860 fn = os.path.join(ppath, file) |
861 # read the file and split it into textlines |
861 # read the file and split it into textlines |
862 try: |
862 try: |
863 text, encoding = Utilities.readEncodedFile(fn) |
863 text, _encoding = Utilities.readEncodedFile(fn) |
864 lines = text.splitlines() |
864 lines = text.splitlines() |
865 except (OSError, UnicodeError): |
865 except (OSError, UnicodeError): |
866 count += 1 |
866 count += 1 |
867 progress.setValue(count) |
867 progress.setValue(count) |
868 continue |
868 continue |
990 if self.__interrupt: |
990 if self.__interrupt: |
991 break |
991 break |
992 |
992 |
993 # read the file and split it into textlines |
993 # read the file and split it into textlines |
994 try: |
994 try: |
995 text, encoding = Utilities.readEncodedFile(fn) |
995 text, _encoding = Utilities.readEncodedFile(fn) |
996 lines = text.splitlines() |
996 lines = text.splitlines() |
997 except (OSError, UnicodeError): |
997 except (OSError, UnicodeError): |
998 continue |
998 continue |
999 |
999 |
1000 # now search tasks and record them |
1000 # now search tasks and record them |