82 """ |
82 """ |
83 itm = QTreeWidgetItem(self.statisticsList) |
83 itm = QTreeWidgetItem(self.statisticsList) |
84 itm.setData(0, Qt.DisplayRole, count) |
84 itm.setData(0, Qt.DisplayRole, count) |
85 itm.setData(1, Qt.DisplayRole, code) |
85 itm.setData(1, Qt.DisplayRole, code) |
86 itm.setData(2, Qt.DisplayRole, message) |
86 itm.setData(2, Qt.DisplayRole, message) |
87 if code.startswith("W"): |
87 if code.startswith(("W", "C")): |
88 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png")) |
88 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png")) |
89 elif code.startswith("E"): |
89 elif code.startswith("E"): |
90 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png")) |
90 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png")) |
91 elif code.startswith("N"): |
91 elif code.startswith("N"): |
92 itm.setIcon(1, UI.PixmapCache.getIcon("namingError.png")) |
92 itm.setIcon(1, UI.PixmapCache.getIcon("namingError.png")) |