Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

branch
5_2_x
changeset 1642
906cd3ed0e6a
parent 1509
c0b5e693b0eb
child 2223
054c285dab38
child 2303
0ed4ed026c16
--- a/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py	Sun Feb 19 15:28:21 2012 +0100
+++ b/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py	Sun Feb 19 15:26:55 2012 +0100
@@ -68,7 +68,10 @@
         @param line linenumber of faulty source (integer or string)
         @param sourcecode faulty line of code (string)
         """
-        itm = QTreeWidgetItem(self.resultList, [file, str(line), sourcecode])
+        itm = QTreeWidgetItem(self.resultList)
+        itm.setData(0, Qt.DisplayRole, file)
+        itm.setData(1, Qt.DisplayRole, line)
+        itm.setData(2, Qt.DisplayRole, sourcecode)
         itm.setTextAlignment(1, Qt.AlignRight)
         
     def prepare(self, fileList, project):

eric ide

mercurial