Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py

changeset 1640
1699d46026cd
parent 1532
df0c2a045c72
child 1746
6c74208f22a2
child 2303
0ed4ed026c16
diff -r 294476b9c714 -r 1699d46026cd Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py
--- a/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py	Sat Feb 18 18:12:14 2012 +0100
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py	Sun Feb 19 15:26:55 2012 +0100
@@ -108,13 +108,21 @@
         """
         path = repopath
         
-        itm = QTreeWidgetItem(self.parentItem, [
-            path,
-            revision,
-            author,
-            size,
-            date,
-        ])
+        if revision == "":
+            rev = ""
+        else:
+            rev = int(revision)
+        if size == "":
+            sz = ""
+        else:
+            sz = int(size)
+        
+        itm = QTreeWidgetItem(self.parentItem)
+        itm.setData(0, Qt.DisplayRole, path)
+        itm.setData(1, Qt.DisplayRole, rev)
+        itm.setData(2, Qt.DisplayRole, author)
+        itm.setData(3, Qt.DisplayRole, sz)
+        itm.setData(4, Qt.DisplayRole, date)
         
         if nodekind == "dir":
             itm.setIcon(0, self.__dirIcon)

eric ide

mercurial