WebBrowser/WebBrowserView.py

branch
QtWebEngine
changeset 4881
c269212cceac
parent 4880
561f2bd9cfb9
child 4884
6983af705a7f
diff -r 561f2bd9cfb9 -r c269212cceac WebBrowser/WebBrowserView.py
--- a/WebBrowser/WebBrowserView.py	Sat Mar 19 18:18:09 2016 +0100
+++ b/WebBrowser/WebBrowserView.py	Sat Mar 19 20:07:34 2016 +0100
@@ -487,17 +487,13 @@
         """
         return self.selectedText() != ""
     
-    # TODO: adjust this to what Qt 5.6 is offering
-    def findNextPrev(self, txt, case, backwards, wrap, highlightAll, callback):
+    def findNextPrev(self, txt, case, backwards, callback):
         """
         Public slot to find the next occurrence of a text.
         
         @param txt text to search for (string)
         @param case flag indicating a case sensitive search (boolean)
         @param backwards flag indicating a backwards search (boolean)
-        @param wrap flag indicating to wrap around (boolean)
-        @param highlightAll flag indicating to highlight all occurrences
-            (boolean)
         @param callback reference to a function with a bool parameter
         @type function(bool) or None
         """
@@ -506,13 +502,6 @@
             findFlags |= QWebEnginePage.FindCaseSensitively
         if backwards:
             findFlags |= QWebEnginePage.FindBackward
-##        if wrap:
-##            findFlags |= QWebPage.FindWrapsAroundDocument
-##        try:
-##            if highlightAll:
-##                findFlags |= QWebPage.HighlightAllOccurrences
-##        except AttributeError:
-##            pass
         
         if callback is None:
             self.findText(txt, findFlags)

eric ide

mercurial