57 itm.setIcon(0, UI.PixmapCache.getIcon("syntaxError.png")) |
57 itm.setIcon(0, UI.PixmapCache.getIcon("syntaxError.png")) |
58 elif code.startswith("N"): |
58 elif code.startswith("N"): |
59 itm.setIcon(0, UI.PixmapCache.getIcon("namingError.png")) |
59 itm.setIcon(0, UI.PixmapCache.getIcon("namingError.png")) |
60 elif code.startswith("D"): |
60 elif code.startswith("D"): |
61 itm.setIcon(0, UI.PixmapCache.getIcon("docstringError.png")) |
61 itm.setIcon(0, UI.PixmapCache.getIcon("docstringError.png")) |
|
62 else: |
|
63 # unknown category prefix => warning |
|
64 itm.setIcon(0, UI.PixmapCache.getIcon("warning.png")) |
62 itm.setFlags(itm.flags() | Qt.ItemIsUserCheckable) |
65 itm.setFlags(itm.flags() | Qt.ItemIsUserCheckable) |
63 if code in codeList: |
66 if code in codeList: |
64 itm.setCheckState(0, Qt.Checked) |
67 itm.setCheckState(0, Qt.Checked) |
65 codeList.remove(code) |
68 codeList.remove(code) |
66 else: |
69 else: |