333 self.summaryList.header().resizeSections( |
333 self.summaryList.header().resizeSections( |
334 QHeaderView.ResizeMode.ResizeToContents |
334 QHeaderView.ResizeMode.ResizeToContents |
335 ) |
335 ) |
336 self.summaryList.header().setStretchLastSection(True) |
336 self.summaryList.header().setStretchLastSection(True) |
337 |
337 |
338 def closeEvent(self, evt): |
338 def closeEvent(self, _evt): |
339 """ |
339 """ |
340 Protected method to handle the close event. |
340 Protected method to handle the close event. |
341 |
341 |
342 @param evt reference to the close event |
342 @param _evt reference to the close event (unused) |
343 @type QCloseEvent |
343 @type QCloseEvent |
344 """ |
344 """ |
345 self.cancelled = True |
345 self.cancelled = True |
346 # The rest is done by the start() method. |
346 # The rest is done by the start() method. |
347 |
347 |
502 self.excludeList.remove(excludePattern) |
502 self.excludeList.remove(excludePattern) |
503 self.excludeList.insert(0, excludePattern) |
503 self.excludeList.insert(0, excludePattern) |
504 self.start(self.__cfn, self.__fn) |
504 self.start(self.__cfn, self.__fn) |
505 |
505 |
506 @pyqtSlot(QTreeWidgetItem, int) |
506 @pyqtSlot(QTreeWidgetItem, int) |
507 def on_resultList_itemActivated(self, item, column): |
507 def on_resultList_itemActivated(self, item, _column): |
508 """ |
508 """ |
509 Private slot to handle the activation of an item. |
509 Private slot to handle the activation of an item. |
510 |
510 |
511 @param item reference to the activated item |
511 @param item reference to the activated item |
512 @type QTreeWidgetItem |
512 @type QTreeWidgetItem |
513 @param column column the item was activated in |
513 @param _column column the item was activated in (unused) |
514 @type int |
514 @type int |
515 """ |
515 """ |
516 self.__openFile(item) |
516 self.__openFile(item) |