WebBrowser/WebBrowserWindow.py

changeset 4917
682750cc7bd5
parent 4913
e16573640cb8
child 4956
1496516b0f2c
diff -r 8081031061a2 -r 682750cc7bd5 WebBrowser/WebBrowserWindow.py
--- a/WebBrowser/WebBrowserWindow.py	Sun Apr 03 16:33:37 2016 +0200
+++ b/WebBrowser/WebBrowserWindow.py	Sun Apr 03 17:07:25 2016 +0200
@@ -2592,7 +2592,7 @@
     @classmethod
     def isPrivate(cls):
         """
-        Public method to check the private browsing mode.
+        Class method to check the private browsing mode.
         
         @return flag indicating private browsing mode
         @rtype bool
@@ -3769,7 +3769,7 @@
                 # enter full screen mode
                 self.__windowStates = evt.oldState()
             elif bool(evt.oldState() & Qt.WindowFullScreen) and \
-                 not bool(self.windowState() & Qt.WindowFullScreen):
+                    not bool(self.windowState() & Qt.WindowFullScreen):
                 # leave full screen mode
                 self.setWindowState(self.__windowStates)
                 self.__htmlFullScreen = False
@@ -3942,14 +3942,14 @@
     ###################################
     
     @classmethod
-    def downloadRequested(self, download):
+    def downloadRequested(cls, download):
         """
         Class method to handle a download request.
         
         @param download reference to the download data
         @type QWebEngineDownloadItem
         """
-        self.downloadManager().download(download)
+        cls.downloadManager().download(download)
     
     ########################################
     ## Support for web engine profiles below
@@ -3982,8 +3982,8 @@
                     cls._webProfile.setHttpCacheType(
                         QWebEngineProfile.DiskHttpCache)
                     cls._webProfile.setHttpCacheMaximumSize(
-                        Preferences.getWebBrowser("DiskCacheSize")
-                        * 1024 * 1024)
+                        Preferences.getWebBrowser("DiskCacheSize") *
+                        1024 * 1024)
                     cls._webProfile.setCachePath(os.path.join(
                         Utilities.getConfigDir(), "web_browser"))
                 else:

eric ide

mercurial