src/eric7/WebBrowser/SearchWidget.py

branch
eric7
changeset 10795
89cfe35c12f9
parent 10439
21c28b0f9e41
child 10806
2f6df822e3b9
equal deleted inserted replaced
10794:cd93fbb75019 10795:89cfe35c12f9
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.

eric ide

mercurial