Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

changeset 1640
1699d46026cd
parent 1509
c0b5e693b0eb
child 2195
d6cbd81fb692
child 2303
0ed4ed026c16
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Sat Feb 18 18:12:14 2012 +0100
+++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Sun Feb 19 15:26:55 2012 +0100
@@ -90,12 +90,14 @@
             self.__lastFileItem.setExpanded(True)
             self.__lastFileItem.setData(0, self.filenameRole, file)
         
-        itm = QTreeWidgetItem(self.__lastFileItem,
-                              ["{0:6}".format(line), error, sourcecode])
+        itm = QTreeWidgetItem(self.__lastFileItem)
         if isWarning:
             itm.setIcon(0, UI.PixmapCache.getIcon("warning.png"))
         else:
             itm.setIcon(0, UI.PixmapCache.getIcon("syntaxError.png"))
+        itm.setData(0, Qt.DisplayRole, line)
+        itm.setData(1, Qt.DisplayRole, error)
+        itm.setData(2, Qt.DisplayRole, sourcecode)
         itm.setData(0, self.filenameRole, file)
         itm.setData(0, self.lineRole, int(line))
         itm.setData(0, self.indexRole, index)

eric ide

mercurial