109 """ |
109 """ |
110 boldFont = self.font(0) |
110 boldFont = self.font(0) |
111 boldFont.setBold(True) |
111 boldFont.setBold(True) |
112 for col in range(5): |
112 for col in range(5): |
113 if self.taskType == Task.TypeFixme: |
113 if self.taskType == Task.TypeFixme: |
114 self.setBackgroundColor(col, Preferences.getTasks("TasksFixmeColor")) |
114 self.setBackgroundColor( |
|
115 col, Preferences.getTasks("TasksFixmeColor")) |
115 elif self.taskType == Task.TypeWarning: |
116 elif self.taskType == Task.TypeWarning: |
116 self.setBackgroundColor(col, Preferences.getTasks("TasksWarningColor")) |
117 self.setBackgroundColor( |
|
118 col, Preferences.getTasks("TasksWarningColor")) |
117 elif self.taskType == Task.TypeTodo: |
119 elif self.taskType == Task.TypeTodo: |
118 self.setBackgroundColor(col, Preferences.getTasks("TasksTodoColor")) |
120 self.setBackgroundColor( |
|
121 col, Preferences.getTasks("TasksTodoColor")) |
119 else: |
122 else: |
120 self.setBackgroundColor(col, Preferences.getTasks("TasksNoteColor")) |
123 self.setBackgroundColor( |
|
124 col, Preferences.getTasks("TasksNoteColor")) |
121 if self._isProjectTask: |
125 if self._isProjectTask: |
122 self.setFont(col, boldFont) |
126 self.setFont(col, boldFont) |
123 |
127 |
124 def setSummary(self, summary): |
128 def setSummary(self, summary): |
125 """ |
129 """ |
220 """ |
224 """ |
221 return self._isProjectTask |
225 return self._isProjectTask |
222 |
226 |
223 def isProjectFileTask(self): |
227 def isProjectFileTask(self): |
224 """ |
228 """ |
225 Public slot to get an indication, if this task is related to a project file. |
229 Public slot to get an indication, if this task is related to a |
|
230 project file. |
226 |
231 |
227 @return flag indicating a project file task (boolean) |
232 @return flag indicating a project file task (boolean) |
228 """ |
233 """ |
229 return self._isProjectTask and self.filename != "" |
234 return self._isProjectTask and self.filename != "" |