WebBrowser/WebBrowserPage.py

changeset 6656
273a2130adbe
parent 6645
ad476851d7e0
child 6662
0002926e71d3
--- a/WebBrowser/WebBrowserPage.py	Wed Jan 16 19:16:23 2019 +0100
+++ b/WebBrowser/WebBrowserPage.py	Wed Jan 16 19:25:34 2019 +0100
@@ -33,6 +33,7 @@
 from Globals import qVersionTuple
 
 
+# TODO: add support for 'selectClientCertificate()' signal of Qt 5.12
 class WebBrowserPage(QWebEnginePage):
     """
     Class implementing an enhanced web page.
@@ -41,8 +42,8 @@
         browsing event
     @signal safeBrowsingBad(threatType, threatMessages) emitted to indicate a
         malicious web site as determined by safe browsing
-    @signal printRequested() emitted to indicate a print request of the shown
-        web page
+    @signal printPageRequested() emitted to indicate a print request of the
+        shown web page
     @signal navigationRequestAccepted(url, navigation type, main frame) emitted
         to signal an accepted navigation request
     """
@@ -56,7 +57,7 @@
     safeBrowsingAbort = pyqtSignal()
     safeBrowsingBad = pyqtSignal(str, str)
     
-    printRequested = pyqtSignal()
+    printPageRequested = pyqtSignal()
     navigationRequestAccepted = pyqtSignal(QUrl, QWebEnginePage.NavigationType,
                                            bool)
     
@@ -155,7 +156,7 @@
                     QUrl(query.queryItemValue("url")))
                 return False
             elif url.path() == "PrintPage":
-                self.printRequested.emit()
+                self.printPageRequested.emit()
                 return False
         
         # Safe Browsing

eric ide

mercurial