Plugins/CheckerPlugins/Pep8/Pep8StatisticsDialog.py

changeset 1640
1699d46026cd
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
equal deleted inserted replaced
1639:294476b9c714 1640:1699d46026cd
71 71
72 @param count occurrences of the issue (integer) 72 @param count occurrences of the issue (integer)
73 @param code of a PEP 8 message (string) 73 @param code of a PEP 8 message (string)
74 @param message PEP 8 message to be shown (string) 74 @param message PEP 8 message to be shown (string)
75 """ 75 """
76 itm = QTreeWidgetItem(self.statisticsList, 76 itm = QTreeWidgetItem(self.statisticsList)
77 ["{0:6}".format(count), code, message]) 77 itm.setData(0, Qt.DisplayRole, count)
78 itm.setData(1, Qt.DisplayRole, code)
79 itm.setData(2, Qt.DisplayRole, message)
78 if code.startswith("W"): 80 if code.startswith("W"):
79 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png")) 81 itm.setIcon(1, UI.PixmapCache.getIcon("warning.png"))
80 elif code.startswith("E"): 82 elif code.startswith("E"):
81 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png")) 83 itm.setIcon(1, UI.PixmapCache.getIcon("syntaxError.png"))
82 84

eric ide

mercurial