--- a/src/eric7/UI/FindFileWidget.py Tue Dec 06 16:04:58 2022 +0100 +++ b/src/eric7/UI/FindFileWidget.py Tue Dec 06 16:46:20 2022 +0100 @@ -911,6 +911,10 @@ menu.addAction(self.tr("Open"), self.__openFile) menu.addAction(self.tr("Copy Path to Clipboard"), self.__copyToClipboard) + if self.__replaceMode: + menu.addSeparator() + menu.addAction(self.tr("Select All"), self.__selectAll) + menu.addAction(self.tr("Deselect All"), self.__deselectAll) menu.exec(QCursor.pos()) @@ -933,6 +937,26 @@ cb = QApplication.clipboard() cb.setText(fn) + @pyqtSlot() + def __deselectAll(self): + """ + Private slot to deselect all entries. + """ + self.__selectAll(check=False) + + @pyqtSlot() + def __selectAll(self, check=True): + """ + Private slot to select all entries. + """ + if self.__replaceMode: + for index in range(self.findList.topLevelItemCount()): + itm = self.findList.topLevelItem(index) + itm.setCheckState( + 0, + Qt.CheckState.Checked if check else Qt.CheckState.Unchecked, + ) + class FindFileDialog(QDialog): """