eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 8188
bfa6c0969acf
parent 8166
bd5cd5858503
child 8205
4a0f1f896341
equal deleted inserted replaced
8187:7bfee4d12551 8188:bfa6c0969acf
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"): 84 elif code.startswith("P"):
85 itm.setIcon(0, UI.PixmapCache.getIcon("dirClosed")) 85 itm.setIcon(0, UI.PixmapCache.getIcon("dirClosed"))
86 elif code.startswith("Y"):
87 itm.setIcon(0, UI.PixmapCache.getIcon("filePython"))
86 else: 88 else:
87 # unknown category prefix => warning 89 # unknown category prefix => warning
88 itm.setIcon(0, UI.PixmapCache.getIcon("warning")) 90 itm.setIcon(0, UI.PixmapCache.getIcon("warning"))
89 itm.setFlags(itm.flags() | Qt.ItemFlag.ItemIsUserCheckable) 91 itm.setFlags(itm.flags() | Qt.ItemFlag.ItemIsUserCheckable)
90 if code in codeList: 92 if code in codeList:

eric ide

mercurial