156 @param revision revision string (string) |
156 @param revision revision string (string) |
157 @param author author of the change (string) |
157 @param author author of the change (string) |
158 @param text line of text from the annotated file (string) |
158 @param text line of text from the annotated file (string) |
159 """ |
159 """ |
160 itm = QTreeWidgetItem(self.blameList, |
160 itm = QTreeWidgetItem(self.blameList, |
161 [revision, author, "%d" % self.lineno, text]) |
161 [revision, author, "{0:d}".format(self.lineno), text]) |
162 self.lineno += 1 |
162 self.lineno += 1 |
163 itm.setTextAlignment(0, Qt.AlignRight) |
163 itm.setTextAlignment(0, Qt.AlignRight) |
164 itm.setTextAlignment(2, Qt.AlignRight) |
164 itm.setTextAlignment(2, Qt.AlignRight) |
165 |
165 |
166 def __readStdout(self): |
166 def __readStdout(self): |