48 elif code in _messages: |
48 elif code in _messages: |
49 message = _messages[code] |
49 message = _messages[code] |
50 else: |
50 else: |
51 continue |
51 continue |
52 itm = QTreeWidgetItem(self.codeTable, [code, message]) |
52 itm = QTreeWidgetItem(self.codeTable, [code, message]) |
53 if code.startswith("W"): |
53 if code.startswith(("W", "C")): |
54 itm.setIcon(0, UI.PixmapCache.getIcon("warning.png")) |
54 itm.setIcon(0, UI.PixmapCache.getIcon("warning.png")) |
55 elif code.startswith("E"): |
55 elif code.startswith("E"): |
56 itm.setIcon(0, UI.PixmapCache.getIcon("syntaxError.png")) |
56 itm.setIcon(0, UI.PixmapCache.getIcon("syntaxError.png")) |
57 elif code.startswith("N"): |
57 elif code.startswith("N"): |
58 itm.setIcon(0, UI.PixmapCache.getIcon("namingError.png")) |
58 itm.setIcon(0, UI.PixmapCache.getIcon("namingError.png")) |