src/eric7/WebBrowser/Feeds/FeedsManager.py

branch
eric7
changeset 10436
f6881d10e995
parent 10069
435cc5875135
child 10439
21c28b0f9e41
--- a/src/eric7/WebBrowser/Feeds/FeedsManager.py	Fri Dec 22 13:57:47 2023 +0100
+++ b/src/eric7/WebBrowser/Feeds/FeedsManager.py	Fri Dec 22 17:24:07 2023 +0100
@@ -46,7 +46,8 @@
         """
         Constructor
 
-        @param parent reference to the parent widget (QWidget)
+        @param parent reference to the parent widget
+        @type QWidget
         """
         super().__init__(parent)
         self.setupUi(self)
@@ -80,10 +81,14 @@
         """
         Public method to add a feed.
 
-        @param urlString URL of the feed (string)
-        @param title title of the feed (string)
-        @param icon icon for the feed (QIcon)
-        @return flag indicating a successful addition of the feed (boolean)
+        @param urlString URL of the feed
+        @type str
+        @param title title of the feed
+        @type str
+        @param icon icon for the feed
+        @type QIcon
+        @return flag indicating a successful addition of the feed
+        @rtype bool
         """
         if urlString == "":
             return False
@@ -110,7 +115,7 @@
         Private slot to add a top level feed item.
 
         @param feed tuple containing feed info (URL, title, icon)
-            (string, string, QIcon)
+        @type tuple of (str, str, QIcon)
         """
         itm = QTreeWidgetItem(self.feedsTree, [feed[1]])
         itm.setIcon(0, feed[2])
@@ -254,7 +259,8 @@
         """
         Private method to reload the given feed.
 
-        @param itm feed item to be reloaded (QTreeWidgetItem)
+        @param itm feed item to be reloaded
+        @type QTreeWidgetItem
         """
         urlString = itm.data(0, FeedsManager.UrlStringRole)
         if urlString == "":
@@ -333,7 +339,8 @@
         """
         Private slot to handle the context menu request for the feeds tree.
 
-        @param pos position the context menu was requested (QPoint)
+        @param pos position the context menu was requested
+        @type QPoint
         """
         itm = self.feedsTree.currentItem()
         if itm is None:
@@ -373,8 +380,10 @@
         """
         Private slot to handle the activation of an item.
 
-        @param itm reference to the activated item (QTreeWidgetItem)
-        @param column column of the activation (integer)
+        @param itm reference to the activated item
+        @type QTreeWidgetItem
+        @param column column of the activation
+        @type int
         """
         if self.feedsTree.indexOfTopLevelItem(itm) != -1:
             return

eric ide

mercurial