Continued porting the web browser. QtWebEngine

Thu, 10 Mar 2016 18:50:38 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 10 Mar 2016 18:50:38 +0100
branch
QtWebEngine
changeset 4826
aa752e6e9eba
parent 4825
b5fb58f3830b
child 4827
778ccdf3417e

Continued porting the web browser.

- fixed a few issues

WebBrowser/Network/NetworkUrlInterceptor.py file | annotate | diff | comparison | revisions
WebBrowser/WebBrowserView.py file | annotate | diff | comparison | revisions
WebBrowser/WebBrowserWindow.py file | annotate | diff | comparison | revisions
--- a/WebBrowser/Network/NetworkUrlInterceptor.py	Wed Mar 09 20:05:24 2016 +0100
+++ b/WebBrowser/Network/NetworkUrlInterceptor.py	Thu Mar 10 18:50:38 2016 +0100
@@ -10,7 +10,7 @@
 
 from __future__ import unicode_literals
 
-from PyQt5.QtWebEngineWidgets import QWebEngineUrlRequestInterceptor
+from PyQt5.QtWebEngineCore import QWebEngineUrlRequestInterceptor
 
 import Preferences
 
--- a/WebBrowser/WebBrowserView.py	Wed Mar 09 20:05:24 2016 +0100
+++ b/WebBrowser/WebBrowserView.py	Thu Mar 10 18:50:38 2016 +0100
@@ -1924,13 +1924,13 @@
     ## Miscellaneous methods below
     ###########################################################################
     
-    # TODO: check, if this is needed (referenced anywhere) (same for HelpBrowserWV)
     def createWindow(self, windowType):
         """
         Public method called, when a new window should be created.
         
-        @param windowType type of the requested window (QWebPage.WebWindowType)
-        @return reference to the created browser window (HelpBrowser)
+        @param windowType type of the requested window
+            (QWebEnginePage.WebWindowType)
+        @return reference to the created browser window (WebBrowserView)
         """
         self.__mw.newTab(addNextTo=self)
         return self.__mw.currentBrowser()
--- a/WebBrowser/WebBrowserWindow.py	Wed Mar 09 20:05:24 2016 +0100
+++ b/WebBrowser/WebBrowserWindow.py	Thu Mar 10 18:50:38 2016 +0100
@@ -146,6 +146,7 @@
                     str(Preferences.getWebBrowser("WebInspectorPort")))
             
             self.webProfile(private)
+            self.networkManager()
             
             from .SearchWidget import SearchWidget
             # TODO: QtHelp

eric ide

mercurial