Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py

changeset 1640
1699d46026cd
parent 1509
c0b5e693b0eb
child 2302
f29e9405c851
--- a/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py	Sat Feb 18 18:12:14 2012 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py	Sun Feb 19 15:26:55 2012 +0100
@@ -106,19 +106,20 @@
         if revision == "":
             rev = ""
         else:
-            rev = "{0:7d}".format(revision.number)
+            rev = revision.number
         if date == "":
             dt = ""
         else:
             dt = formatTime(date)
-        if size == 0:
-            sz = ""
-        else:
-            sz = "{0:7d}".format(size)
         if author is None:
             author = ""
         
-        itm = QTreeWidgetItem(parent, [path, rev, author, sz, dt])
+        itm = QTreeWidgetItem(parent)
+        itm.setData(0, Qt.DisplayRole, path)
+        itm.setData(1, Qt.DisplayRole, rev)
+        itm.setData(2, Qt.DisplayRole, author)
+        itm.setData(3, Qt.DisplayRole, size)
+        itm.setData(4, Qt.DisplayRole, dt)
         
         if nodekind == pysvn.node_kind.dir:
             itm.setIcon(0, self.__dirIcon)

eric ide

mercurial