66 |
66 |
67 @param file filename of file (string) |
67 @param file filename of file (string) |
68 @param line linenumber of faulty source (integer or string) |
68 @param line linenumber of faulty source (integer or string) |
69 @param sourcecode faulty line of code (string) |
69 @param sourcecode faulty line of code (string) |
70 """ |
70 """ |
71 itm = QTreeWidgetItem(self.resultList, [file, str(line), sourcecode]) |
71 itm = QTreeWidgetItem(self.resultList) |
|
72 itm.setData(0, Qt.DisplayRole, file) |
|
73 itm.setData(1, Qt.DisplayRole, line) |
|
74 itm.setData(2, Qt.DisplayRole, sourcecode) |
72 itm.setTextAlignment(1, Qt.AlignRight) |
75 itm.setTextAlignment(1, Qt.AlignRight) |
73 |
76 |
74 def prepare(self, fileList, project): |
77 def prepare(self, fileList, project): |
75 """ |
78 """ |
76 Public method to prepare the dialog with a list of filenames. |
79 Public method to prepare the dialog with a list of filenames. |