Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

branch
5_2_x
changeset 1642
906cd3ed0e6a
parent 1509
c0b5e693b0eb
child 2195
d6cbd81fb692
child 2303
0ed4ed026c16
diff -r b298c95cd83f -r 906cd3ed0e6a Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py	Sun Feb 19 15:28:21 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