Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleStatisticsDialog.py

changeset 4423
14f3ca3dcef6
parent 4021
195a471c327b
child 4506
57666e501a42
equal deleted inserted replaced
4419:66be66ec3afc 4423:14f3ca3dcef6
82 """ 82 """
83 itm = QTreeWidgetItem(self.statisticsList) 83 itm = QTreeWidgetItem(self.statisticsList)
84 itm.setData(0, Qt.DisplayRole, count) 84 itm.setData(0, Qt.DisplayRole, count)
85 itm.setData(1, Qt.DisplayRole, code) 85 itm.setData(1, Qt.DisplayRole, code)
86 itm.setData(2, Qt.DisplayRole, message) 86 itm.setData(2, Qt.DisplayRole, message)
87 if code.startswith("W"): 87 if code.startswith(("W", "C")):
88 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png")) 88 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png"))
89 elif code.startswith("E"): 89 elif code.startswith("E"):
90 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png")) 90 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png"))
91 elif code.startswith("N"): 91 elif code.startswith("N"):
92 itm.setIcon(1, UI.PixmapCache.getIcon("namingError.png")) 92 itm.setIcon(1, UI.PixmapCache.getIcon("namingError.png"))

eric ide

mercurial