E5Gui/E5TextEditSearchWidget.py

changeset 5924
85e126ab4ca5
parent 5913
7ab2293917f8
child 5949
22657f04f332
child 5959
4c716b02e10d
equal deleted inserted replaced
5923:1eb08ac3b848 5924:85e126ab4ca5
200 @return flag indicating the search result 200 @return flag indicating the search result
201 @rtype bool 201 @rtype bool
202 """ 202 """
203 from PyQt5.QtWebKitWidgets import QWebPage 203 from PyQt5.QtWebKitWidgets import QWebPage
204 204
205 findFlags = QWebPage.FindFlags(QWebPage.HighlightAllOccurrences) 205 findFlags = QWebPage.FindFlags(QWebPage.FindWrapsAroundDocument)
206 if self.caseCheckBox.isChecked(): 206 if self.caseCheckBox.isChecked():
207 findFlags |= QWebPage.FindCaseSensitively 207 findFlags |= QWebPage.FindCaseSensitively
208 if backwards: 208 if backwards:
209 findFlags |= QWebPage.FindBackward 209 findFlags |= QWebPage.FindBackward
210 210
211 return self.findText(self.findtextCombo.currentText(), findFlags) 211 return self.__textedit.findText(self.findtextCombo.currentText(),
212 findFlags)
212 213
213 def __findPrevNextQWebEngineView(self, backwards): 214 def __findPrevNextQWebEngineView(self, backwards):
214 """ 215 """
215 Private method to to search the associated edit widget of 216 Private method to to search the associated edit widget of
216 type QWebEngineView. 217 type QWebEngineView.

eric ide

mercurial