Tasks/Task.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 2997
7f0ef975da9e
child 3145
a9de05d4a22f
--- a/Tasks/Task.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Tasks/Task.py	Fri Oct 18 23:00:41 2013 +0200
@@ -35,15 +35,14 @@
         """
         Constructor
         
-        @param parent parent widget of the task (QWidget)
         @param summary summary text of the task (string)
         @param priority priority of the task (0=high, 1=normal, 2=low)
         @param filename filename containing the task (string)
         @param lineno line number containing the task (integer)
         @param completed flag indicating completion status (boolean)
         @param _time creation time of the task (float, if 0 use current time)
-        @param isProjectTask flag indicating a task related to the current project
-            (boolean)
+        @param isProjectTask flag indicating a task related to the current
+            project (boolean)
         @param taskType type of the task (one of TypeFixme, TypeTodo,
             TypeWarning, TypeNote)
         @param project reference to the project object (Project)
@@ -114,13 +113,17 @@
         boldFont.setBold(True)
         for col in range(5):
             if self.taskType == Task.TypeFixme:
-                self.setBackgroundColor(col, Preferences.getTasks("TasksFixmeColor"))
+                self.setBackgroundColor(
+                    col, Preferences.getTasks("TasksFixmeColor"))
             elif self.taskType == Task.TypeWarning:
-                self.setBackgroundColor(col, Preferences.getTasks("TasksWarningColor"))
+                self.setBackgroundColor(
+                    col, Preferences.getTasks("TasksWarningColor"))
             elif self.taskType == Task.TypeTodo:
-                self.setBackgroundColor(col, Preferences.getTasks("TasksTodoColor"))
+                self.setBackgroundColor(
+                    col, Preferences.getTasks("TasksTodoColor"))
             else:
-                self.setBackgroundColor(col, Preferences.getTasks("TasksNoteColor"))
+                self.setBackgroundColor(
+                    col, Preferences.getTasks("TasksNoteColor"))
             if self._isProjectTask:
                 self.setFont(col, boldFont)
     
@@ -225,7 +228,8 @@
     
     def isProjectFileTask(self):
         """
-        Public slot to get an indication, if this task is related to a project file.
+        Public slot to get an indication, if this task is related to a
+        project file.
         
         @return flag indicating a project file task (boolean)
         """

eric ide

mercurial