Tue, 17 Sep 2019 19:23:27 +0200
CodeStyleCodeSelectionDialog: made the Warning icon the default icon.
eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py | file | annotate | diff | comparison | revisions |
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py Tue Sep 17 19:22:39 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py Tue Sep 17 19:23:27 2019 +0200 @@ -59,6 +59,9 @@ itm.setIcon(0, UI.PixmapCache.getIcon("namingError.png")) elif code.startswith("D"): itm.setIcon(0, UI.PixmapCache.getIcon("docstringError.png")) + else: + # unknown category prefix => warning + itm.setIcon(0, UI.PixmapCache.getIcon("warning.png")) itm.setFlags(itm.flags() | Qt.ItemIsUserCheckable) if code in codeList: itm.setCheckState(0, Qt.Checked)