eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 8166
bd5cd5858503
parent 8143
2c730d5fd177
child 8188
bfa6c0969acf
equal deleted inserted replaced
8165:61ca9619decb 8166:bd5cd5858503
79 itm.setIcon(0, UI.PixmapCache.getIcon("namingError")) 79 itm.setIcon(0, UI.PixmapCache.getIcon("namingError"))
80 elif code.startswith("D"): 80 elif code.startswith("D"):
81 itm.setIcon(0, UI.PixmapCache.getIcon("docstringError")) 81 itm.setIcon(0, UI.PixmapCache.getIcon("docstringError"))
82 elif code.startswith("S"): 82 elif code.startswith("S"):
83 itm.setIcon(0, UI.PixmapCache.getIcon("securityLow")) 83 itm.setIcon(0, UI.PixmapCache.getIcon("securityLow"))
84 elif code.startswith("P"):
85 itm.setIcon(0, UI.PixmapCache.getIcon("dirClosed"))
84 else: 86 else:
85 # unknown category prefix => warning 87 # unknown category prefix => warning
86 itm.setIcon(0, UI.PixmapCache.getIcon("warning")) 88 itm.setIcon(0, UI.PixmapCache.getIcon("warning"))
87 itm.setFlags(itm.flags() | Qt.ItemFlag.ItemIsUserCheckable) 89 itm.setFlags(itm.flags() | Qt.ItemFlag.ItemIsUserCheckable)
88 if code in codeList: 90 if code in codeList:

eric ide

mercurial