eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 7244
3e6502e77117
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7243:cfeea029d8e1 7244:3e6502e77117
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:

eric ide

mercurial