Tasks/Task.py

changeset 4457
6faeea06e9b6
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4456:9a2304647d95 4457:6faeea06e9b6
117 """ 117 """
118 Public slot to set the colors of the task item. 118 Public slot to set the colors of the task item.
119 """ 119 """
120 boldFont = self.font(0) 120 boldFont = self.font(0)
121 boldFont.setBold(True) 121 boldFont.setBold(True)
122 nonBoldFont = self.font(0)
123 nonBoldFont.setBold(False)
122 for col in range(5): 124 for col in range(5):
123 if self.taskType == Task.TypeFixme: 125 if self.taskType == Task.TypeFixme:
124 self.setBackground( 126 self.setBackground(
125 col, Preferences.getTasks("TasksFixmeColor")) 127 col, Preferences.getTasks("TasksFixmeColor"))
126 elif self.taskType == Task.TypeWarning: 128 elif self.taskType == Task.TypeWarning:
132 else: 134 else:
133 self.setBackground( 135 self.setBackground(
134 col, Preferences.getTasks("TasksNoteColor")) 136 col, Preferences.getTasks("TasksNoteColor"))
135 if self._isProjectTask: 137 if self._isProjectTask:
136 self.setFont(col, boldFont) 138 self.setFont(col, boldFont)
139 else:
140 self.setFont(col, nonBoldFont)
137 141
138 def setSummary(self, summary): 142 def setSummary(self, summary):
139 """ 143 """
140 Public slot to update the description. 144 Public slot to update the description.
141 145

eric ide

mercurial