WebBrowser/WebBrowserPage.py

changeset 5113
d394e20f7467
parent 5009
8b1ca3c1da22
child 5389
9b1c800daff3
diff -r 8eb1a1a6916b -r d394e20f7467 WebBrowser/WebBrowserPage.py
--- a/WebBrowser/WebBrowserPage.py	Thu Aug 25 17:21:25 2016 +0200
+++ b/WebBrowser/WebBrowserPage.py	Fri Aug 26 18:56:54 2016 +0200
@@ -327,3 +327,17 @@
         """
         self.view().mainWindow().javascriptConsole().javaScriptConsoleMessage(
             level, message, lineNumber, sourceId)
+    
+    ##################################################
+    ## Methods below implement compatibility functions
+    ##################################################
+    
+    if not hasattr(QWebEnginePage, "icon"):
+        def icon(self):
+            """
+            Public method to get the web site icon.
+            
+            @return web site icon
+            @rtype QIcon
+            """
+            return self.view().icon()

eric ide

mercurial