src/eric7/Tasks/TaskViewer.py

branch
eric7
changeset 10431
64157aeb0312
parent 10069
435cc5875135
child 10439
21c28b0f9e41
--- a/src/eric7/Tasks/TaskViewer.py	Wed Dec 20 19:28:22 2023 +0100
+++ b/src/eric7/Tasks/TaskViewer.py	Thu Dec 21 12:03:40 2023 +0100
@@ -54,8 +54,10 @@
         """
         Constructor
 
-        @param parent the parent (QWidget)
+        @param parent the parent
+        @type QWidget
         @param project reference to the project object
+        @type Project
         """
         super().__init__(parent)
 
@@ -214,8 +216,10 @@
         """
         Public method to find a parent task by its ID.
 
-        @param parentUid uid of the parent task (string)
-        @return reference to the task (Task)
+        @param parentUid uid of the parent task
+        @type str
+        @return reference to the task
+        @rtype Task
         """
         if not parentUid:
             return None
@@ -264,8 +268,10 @@
         """
         Private slot to handle the activation of an item.
 
-        @param itm reference to the activated item (QTreeWidgetItem)
-        @param col column the item was activated in (integer)
+        @param itm reference to the activated item
+        @type QTreeWidgetItem
+        @param col column the item was activated in
+        @type int
         """
         if (
             not self.__activating
@@ -288,7 +294,8 @@
         """
         Private slot to show the context menu of the list.
 
-        @param coord the position of the mouse pointer (QPoint)
+        @param coord the position of the mouse pointer
+        @type QPoint
         """
         itm = self.itemAt(coord)
         coord = self.mapToGlobal(coord)
@@ -330,6 +337,7 @@
         Public slot to set the project status.
 
         @param o flag indicating the project status
+        @type bool
         """
         self.projectOpen = o
 
@@ -459,7 +467,8 @@
         """
         Public method to retrieve all project related tasks.
 
-        @return copy of tasks (list of Task)
+        @return copy of tasks
+        @rtype list of Task
         """
         tasks = [task for task in self.tasks if task.isProjectTask()]
         return tasks[:]
@@ -468,7 +477,8 @@
         """
         Public method to retrieve all non project related tasks.
 
-        @return copy of tasks (list of Task)
+        @return copy of tasks
+        @rtype list of Task
         """
         tasks = [task for task in self.tasks if not task.isProjectTask()]
         return tasks[:]
@@ -485,8 +495,8 @@
         """
         Public slot to clear project related tasks.
 
-        @param fileOnly flag indicating to clear only file related
-            project tasks (boolean)
+        @param fileOnly flag indicating to clear only file related project tasks
+        @type bool
         """
         for task in reversed(self.tasks[:]):
             if (fileOnly and task.isProjectFileTask()) or (
@@ -507,9 +517,11 @@
         """
         Public slot to clear all tasks related to a file.
 
-        @param filename name of the file (string)
+        @param filename name of the file
+        @type str
         @param conditionally flag indicating to clear the tasks of the file
-            checking some conditions (boolean)
+            checking some conditions
+        @type bool
         """
         if conditionally:
             if self.project and self.project.isProjectCategory(filename, "SOURCES"):
@@ -678,7 +690,8 @@
         """
         Private method to delete all sub-tasks.
 
-        @param task task to delete sub-tasks of (Task)
+        @param task task to delete sub-tasks of
+        @type Task
         """
         for subtask in task.takeChildren():
             if self.copyTask == subtask:
@@ -736,7 +749,8 @@
         """
         Private slot to handle the "Filtered display" context menu entry.
 
-        @param on flag indicating the filter state (boolean)
+        @param on flag indicating the filter state
+        @type bool
         """
         if on and not self.taskFilter.hasActiveFilter():
             res = EricMessageBox.yesNo(
@@ -928,7 +942,8 @@
         """
         Constructor
 
-        @param parent reference to the parent object (QObject)
+        @param parent reference to the parent object
+        @type QObject
         """
         super().__init__()
 

eric ide

mercurial