src/eric7/WebBrowser/CookieJar/CookieExceptionsModel.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
--- a/src/eric7/WebBrowser/CookieJar/CookieExceptionsModel.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/CookieJar/CookieExceptionsModel.py	Fri Dec 22 17:24:07 2023 +0100
@@ -20,8 +20,10 @@
         """
         Constructor
 
-        @param cookieJar reference to the cookie jar (CookieJar)
-        @param parent reference to the parent object (QObject)
+        @param cookieJar reference to the cookie jar
+        @type CookieJar
+        @param parent reference to the parent object
+        @type QObject
         """
         super().__init__(parent)
 
@@ -39,10 +41,14 @@
         """
         Public method to get header data from the model.
 
-        @param section section number (integer)
-        @param orientation orientation (Qt.Orientation)
-        @param role role of the data to retrieve (Qt.ItemDataRole)
+        @param section section number
+        @type int
+        @param orientation orientation
+        @type Qt.Orientation
+        @param role role of the data to retrieve
+        @type Qt.ItemDataRole
         @return requested data
+        @rtype Any
         """
         if role == Qt.ItemDataRole.SizeHintRole:
             fm = QFontMetrics(QFont())
@@ -67,9 +73,12 @@
         """
         Public method to get data from the model.
 
-        @param index index to get data for (QModelIndex)
-        @param role role of the data to retrieve (integer)
+        @param index index to get data for
+        @type QModelIndex
+        @param role role of the data to retrieve
+        @type int
         @return requested data
+        @rtype Any
         """
         if index.row() < 0 or index.row() >= self.rowCount():
             return None
@@ -110,8 +119,10 @@
         """
         Public method to get the number of columns of the model.
 
-        @param parent parent index (QModelIndex)
-        @return number of columns (integer)
+        @param parent parent index
+        @type QModelIndex
+        @return number of columns
+        @rtype int
         """
         if parent is None:
             parent = QModelIndex()
@@ -125,8 +136,10 @@
         """
         Public method to get the number of rows of the model.
 
-        @param parent parent index (QModelIndex)
-        @return number of rows (integer)
+        @param parent parent index
+        @type QModelIndex
+        @return number of rows
+        @rtype int
         """
         if parent is None:
             parent = QModelIndex()
@@ -144,10 +157,14 @@
         """
         Public method to remove entries from the model.
 
-        @param row start row (integer)
-        @param count number of rows to remove (integer)
-        @param parent parent index (QModelIndex)
-        @return flag indicating success (boolean)
+        @param row start row
+        @type int
+        @param count number of rows to remove
+        @type int
+        @param parent parent index
+        @type QModelIndex
+        @return flag indicating success
+        @rtype bool
         """
         if parent is None:
             parent = QModelIndex()
@@ -185,9 +202,11 @@
         """
         Public method to add an exception rule.
 
-        @param host name of the host to add a rule for (string)
+        @param host name of the host to add a rule for
+        @type str
         @param rule type of rule to add (CookieJar.Allow, CookieJar.Block or
             CookieJar.AllowForSession)
+        @type int
         """
         from .CookieJar import CookieJar
 
@@ -223,12 +242,14 @@
         """
         Private method to add a host to an exception list.
 
-        @param host name of the host to add (string)
-        @param addList reference to the list to add it to (list of strings)
+        @param host name of the host to add
+        @type str
+        @param addList reference to the list to add it to
+        @type list of str
         @param removeList1 reference to first list to remove it from
-            (list of strings)
+        @type list of str
         @param removeList2 reference to second list to remove it from
-            (list of strings)
+        @type list of str
         """
         if host not in addList:
             addList.append(host)

eric ide

mercurial