--- a/eric6/Tasks/Task.py Sun Apr 12 18:46:08 2020 +0200 +++ b/eric6/Tasks/Task.py Sun Apr 12 19:07:49 2020 +0200 @@ -81,10 +81,10 @@ self.setData(4, Qt.DisplayRole, self.lineno or "") if self.completed: - self.setIcon(0, UI.PixmapCache.getIcon("taskCompleted.png")) + self.setIcon(0, UI.PixmapCache.getIcon("taskCompleted")) strikeOut = True else: - self.setIcon(0, UI.PixmapCache.getIcon("empty.png")) + self.setIcon(0, UI.PixmapCache.getIcon("empty")) strikeOut = False for column in range(2, 5): f = self.font(column) @@ -92,22 +92,22 @@ self.setFont(column, f) if self.priority == 1: - self.setIcon(1, UI.PixmapCache.getIcon("empty.png")) + self.setIcon(1, UI.PixmapCache.getIcon("empty")) elif self.priority == 0: - self.setIcon(1, UI.PixmapCache.getIcon("taskPrioHigh.png")) + self.setIcon(1, UI.PixmapCache.getIcon("taskPrioHigh")) elif self.priority == 2: - self.setIcon(1, UI.PixmapCache.getIcon("taskPrioLow.png")) + self.setIcon(1, UI.PixmapCache.getIcon("taskPrioLow")) else: - self.setIcon(1, UI.PixmapCache.getIcon("empty.png")) + self.setIcon(1, UI.PixmapCache.getIcon("empty")) if self.taskType == Task.TypeFixme: - self.setIcon(2, UI.PixmapCache.getIcon("taskFixme.png")) + self.setIcon(2, UI.PixmapCache.getIcon("taskFixme")) elif self.taskType == Task.TypeWarning: - self.setIcon(2, UI.PixmapCache.getIcon("taskWarning.png")) + self.setIcon(2, UI.PixmapCache.getIcon("taskWarning")) elif self.taskType == Task.TypeTodo: - self.setIcon(2, UI.PixmapCache.getIcon("taskTodo.png")) + self.setIcon(2, UI.PixmapCache.getIcon("taskTodo")) else: - self.setIcon(2, UI.PixmapCache.getIcon("taskNote.png")) + self.setIcon(2, UI.PixmapCache.getIcon("taskNote")) self.colorizeTask() self.setTextAlignment(4, Qt.AlignRight) @@ -167,13 +167,13 @@ self.priority = 1 if self.priority == 1: - self.setIcon(1, UI.PixmapCache.getIcon("empty.png")) + self.setIcon(1, UI.PixmapCache.getIcon("empty")) elif self.priority == 0: - self.setIcon(1, UI.PixmapCache.getIcon("taskPrioHigh.png")) + self.setIcon(1, UI.PixmapCache.getIcon("taskPrioHigh")) elif self.priority == 2: - self.setIcon(1, UI.PixmapCache.getIcon("taskPrioLow.png")) + self.setIcon(1, UI.PixmapCache.getIcon("taskPrioLow")) else: - self.setIcon(1, UI.PixmapCache.getIcon("empty.png")) + self.setIcon(1, UI.PixmapCache.getIcon("empty")) def setCompleted(self, completed): """ @@ -183,10 +183,10 @@ """ self.completed = completed if self.completed: - self.setIcon(0, UI.PixmapCache.getIcon("taskCompleted.png")) + self.setIcon(0, UI.PixmapCache.getIcon("taskCompleted")) strikeOut = True else: - self.setIcon(0, UI.PixmapCache.getIcon("empty.png")) + self.setIcon(0, UI.PixmapCache.getIcon("empty")) strikeOut = False for column in range(2, 5): f = self.font(column)