71 |
71 |
72 @param count occurrences of the issue (integer) |
72 @param count occurrences of the issue (integer) |
73 @param code of a PEP 8 message (string) |
73 @param code of a PEP 8 message (string) |
74 @param message PEP 8 message to be shown (string) |
74 @param message PEP 8 message to be shown (string) |
75 """ |
75 """ |
76 itm = QTreeWidgetItem(self.statisticsList, |
76 itm = QTreeWidgetItem(self.statisticsList) |
77 ["{0:6}".format(count), code, message]) |
77 itm.setData(0, Qt.DisplayRole, count) |
|
78 itm.setData(1, Qt.DisplayRole, code) |
|
79 itm.setData(2, Qt.DisplayRole, message) |
78 if code.startswith("W"): |
80 if code.startswith("W"): |
79 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png")) |
81 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png")) |
80 elif code.startswith("E"): |
82 elif code.startswith("E"): |
81 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png")) |
83 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png")) |
82 |
84 |