Tasks/TaskViewer.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1373
b3b3c99dba01
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
69 self.project = project 69 self.project = project
70 70
71 if isProjectTask: 71 if isProjectTask:
72 self.filename = self.project.getRelativePath(self.filename) 72 self.filename = self.project.getRelativePath(self.filename)
73 73
74 QTreeWidgetItem.__init__(self, ["", "", self.description, self.filename, 74 super().__init__(["", "", self.description, self.filename,
75 (self.lineno and "{0:6d}".format(self.lineno) or "")]) 75 (self.lineno and "{0:6d}".format(self.lineno) or "")])
76 76
77 if self.completed: 77 if self.completed:
78 self.setIcon(0, UI.PixmapCache.getIcon("taskCompleted.png")) 78 self.setIcon(0, UI.PixmapCache.getIcon("taskCompleted.png"))
79 strikeOut = True 79 strikeOut = True
356 Constructor 356 Constructor
357 357
358 @param parent the parent (QWidget) 358 @param parent the parent (QWidget)
359 @param project reference to the project object 359 @param project reference to the project object
360 """ 360 """
361 QTreeWidget.__init__(self, parent) 361 super().__init__(parent)
362 362
363 self.setRootIsDecorated(False) 363 self.setRootIsDecorated(False)
364 self.setItemsExpandable(False) 364 self.setItemsExpandable(False)
365 self.setSortingEnabled(True) 365 self.setSortingEnabled(True)
366 366

eric ide

mercurial