Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

changeset 4501
3224f20d8eb0
parent 4278
ccd1e13cb9bd
child 4503
d68dcbe1deb3
equal deleted inserted replaced
4500:884269e383f7 4501:3224f20d8eb0
81 81
82 @param file filename of file (string) 82 @param file filename of file (string)
83 @param line linenumber of faulty source (integer or string) 83 @param line linenumber of faulty source (integer or string)
84 @param sourcecode faulty line of code (string) 84 @param sourcecode faulty line of code (string)
85 """ 85 """
86 # TODO: create the file item relative to the project
86 itm = QTreeWidgetItem(self.resultList) 87 itm = QTreeWidgetItem(self.resultList)
87 itm.setData(0, Qt.DisplayRole, file) 88 itm.setData(0, Qt.DisplayRole, file)
88 itm.setData(1, Qt.DisplayRole, line) 89 itm.setData(1, Qt.DisplayRole, line)
89 itm.setData(2, Qt.DisplayRole, sourcecode) 90 itm.setData(2, Qt.DisplayRole, sourcecode)
90 itm.setTextAlignment(1, Qt.AlignRight) 91 itm.setTextAlignment(1, Qt.AlignRight)

eric ide

mercurial