102 @type QWebEngineFindTextResult |
102 @type QWebEngineFindTextResult |
103 """ |
103 """ |
104 if result.numberOfMatches() == 0: |
104 if result.numberOfMatches() == 0: |
105 self.infoLabel.setText(self.tr("Expression was not found.")) |
105 self.infoLabel.setText(self.tr("Expression was not found.")) |
106 self.__setFindtextComboBackground(True) |
106 self.__setFindtextComboBackground(True) |
|
107 else: |
|
108 self.infoLabel.setText( |
|
109 self.tr("Match {0} of {1}").format( |
|
110 result.activeMatch(), result.numberOfMatches() |
|
111 ) |
|
112 ) |
107 |
113 |
108 @pyqtSlot() |
114 @pyqtSlot() |
109 def on_findNextButton_clicked(self): |
115 def on_findNextButton_clicked(self): |
110 """ |
116 """ |
111 Private slot to find the next occurrence. |
117 Private slot to find the next occurrence. |