eric6/E5Gui/E5TextEditSearchWidget.py

branch
without_py2_and_pyqt4
changeset 7196
ab0a91b82b37
parent 6942
2602857055c5
child 7229
53054eb5b15a
diff -r a22eee00b052 -r ab0a91b82b37 eric6/E5Gui/E5TextEditSearchWidget.py
--- a/eric6/E5Gui/E5TextEditSearchWidget.py	Sat Aug 31 12:58:11 2019 +0200
+++ b/eric6/E5Gui/E5TextEditSearchWidget.py	Sun Sep 01 17:43:03 2019 +0200
@@ -273,9 +273,6 @@
             self.__findNextPrevCallback(ok)
         elif self.__texteditType == "QWebEngineView":
             self.__findPrevNextQWebEngineView(backwards)
-        elif self.__texteditType == "QWebView":
-            ok = self.__findPrevNextQWebView(backwards)
-            self.__findNextPrevCallback(ok)
     
     def __findPrevNextQTextEdit(self, backwards):
         """
@@ -310,27 +307,6 @@
         
         return ok
     
-    def __findPrevNextQWebView(self, backwards):
-        """
-        Private method to to search the associated edit widget of
-        type QWebView.
-        
-        @param backwards flag indicating a backwards search
-        @type bool
-        @return flag indicating the search result
-        @rtype bool
-        """
-        from PyQt5.QtWebKitWidgets import QWebPage
-        
-        findFlags = QWebPage.FindFlags(QWebPage.FindWrapsAroundDocument)
-        if self.caseCheckBox.isChecked():
-            findFlags |= QWebPage.FindCaseSensitively
-        if backwards:
-            findFlags |= QWebPage.FindBackward
-        
-        return self.__textedit.findText(self.findtextCombo.currentText(),
-                                        findFlags)
-    
     def __findPrevNextQWebEngineView(self, backwards):
         """
         Private method to to search the associated edit widget of

eric ide

mercurial