Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 4423
14f3ca3dcef6
parent 4021
195a471c327b
child 4506
57666e501a42
equal deleted inserted replaced
4419:66be66ec3afc 4423:14f3ca3dcef6
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"))

eric ide

mercurial