src/eric7/WebBrowser/WebBrowserPage.py

branch
eric7
changeset 10436
f6881d10e995
parent 10240
cbd566d49a88
child 10439
21c28b0f9e41
--- a/src/eric7/WebBrowser/WebBrowserPage.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/WebBrowserPage.py	Fri Dec 22 17:24:07 2023 +0100
@@ -115,7 +115,7 @@
         the page.
 
         @return reference to the WebBrowserView associated with the page
-        r@type WebBrowserView
+        @rtype WebBrowserView
         """
         return self.__view
 
@@ -255,8 +255,10 @@
         Class method to get the global user agent setting.
 
         @param resolveEmpty flag indicating to resolve an empty
-            user agent (boolean)
-        @return user agent string (string)
+            user agent
+        @type bool
+        @return user agent string
+        @rtype str
         """
         agent = Preferences.getWebBrowser("UserAgent")
         if agent == "" and resolveEmpty:
@@ -268,7 +270,8 @@
         """
         Class method to set the global user agent string.
 
-        @param agent new current user agent string (string)
+        @param agent new current user agent string
+        @type str
         """
         Preferences.setWebBrowser("UserAgent", agent)
 
@@ -277,8 +280,10 @@
         """
         Class method to determine the user agent for the given URL.
 
-        @param url URL to determine user agent for (QUrl)
-        @return user agent string (string)
+        @param url URL to determine user agent for
+        @type QUrl
+        @return user agent string
+        @rtype str
         """
         agent = WebBrowserWindow.userAgentsManager().userAgentForUrl(url)
         if agent == "":

eric ide

mercurial