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. |