87 self.findtextCombo.currentText(), |
87 self.findtextCombo.currentText(), |
88 self.caseCheckBox.isChecked(), |
88 self.caseCheckBox.isChecked(), |
89 self.__findBackwards, |
89 self.__findBackwards, |
90 self.__findNextPrevCallback) |
90 self.__findNextPrevCallback) |
91 |
91 |
92 def __findNextPrevCallback(self, found): |
92 def __findNextPrevCallback(self, result): |
93 """ |
93 """ |
94 Private method to process the result of the last search. |
94 Private method to process the result of the last search. |
95 |
95 |
96 @param found flag indicating if the last search succeeded |
96 @param result reference to the search result |
97 @type bool |
97 @type QWebEngineFindTextResult |
98 """ |
98 """ |
99 if not found: |
99 if result.numberOfMatches() == 0: |
100 self.infoLabel.setText(self.tr("Expression was not found.")) |
100 self.infoLabel.setText(self.tr("Expression was not found.")) |
101 self.__setFindtextComboBackground(True) |
101 self.__setFindtextComboBackground(True) |
102 |
102 |
103 @pyqtSlot() |
103 @pyqtSlot() |
104 def on_findNextButton_clicked(self): |
104 def on_findNextButton_clicked(self): |