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) |