Tasks/Task.py

branch
6_0_x
changeset 4459
85544f1ce888
parent 4022
f5f42921717e
equal deleted inserted replaced
4458:757d7591eab0 4459:85544f1ce888
109 """ 109 """
110 Public slot to set the colors of the task item. 110 Public slot to set the colors of the task item.
111 """ 111 """
112 boldFont = self.font(0) 112 boldFont = self.font(0)
113 boldFont.setBold(True) 113 boldFont.setBold(True)
114 nonBoldFont = self.font(0)
115 nonBoldFont.setBold(False)
114 for col in range(5): 116 for col in range(5):
115 if self.taskType == Task.TypeFixme: 117 if self.taskType == Task.TypeFixme:
116 self.setBackground( 118 self.setBackground(
117 col, Preferences.getTasks("TasksFixmeColor")) 119 col, Preferences.getTasks("TasksFixmeColor"))
118 elif self.taskType == Task.TypeWarning: 120 elif self.taskType == Task.TypeWarning:
124 else: 126 else:
125 self.setBackground( 127 self.setBackground(
126 col, Preferences.getTasks("TasksNoteColor")) 128 col, Preferences.getTasks("TasksNoteColor"))
127 if self._isProjectTask: 129 if self._isProjectTask:
128 self.setFont(col, boldFont) 130 self.setFont(col, boldFont)
131 else:
132 self.setFont(col, nonBoldFont)
129 133
130 def setSummary(self, summary): 134 def setSummary(self, summary):
131 """ 135 """
132 Public slot to update the description. 136 Public slot to update the description.
133 137

eric ide

mercurial