CodeStyleCodeSelectionDialog: made the Warning icon the default icon.

Tue, 17 Sep 2019 19:23:27 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 17 Sep 2019 19:23:27 +0200
changeset 7244
3e6502e77117
parent 7243
cfeea029d8e1
child 7245
b47179fbb9d8

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)

eric ide

mercurial