Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py

changeset 1640
1699d46026cd
parent 1509
c0b5e693b0eb
child 1764
ba0c21fd61f6
--- a/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py	Sat Feb 18 18:12:14 2012 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py	Sun Feb 19 15:26:55 2012 +0100
@@ -142,16 +142,18 @@
             rev = ""
             self.__lastRev = 0
         else:
-            rev = "{0:7d}".format(revision.number)
+            rev = revision.number
             self.__lastRev = revision.number
         if date == "":
             dt = ""
         else:
             dt = formatTime(date)
         
-        itm = QTreeWidgetItem(self.logTree,
-            [rev, author, dt, " ".join(message.splitlines())]
-        )
+        itm = QTreeWidgetItem(self.logTree)
+        itm.setData(0, Qt.DisplayRole, rev)
+        itm.setData(1, Qt.DisplayRole, author)
+        itm.setData(2, Qt.DisplayRole, dt)
+        itm.setData(3, Qt.DisplayRole, " ".join(message.splitlines()))
         
         changes = []
         for changedPath in changedPaths:

eric ide

mercurial