146 def __resizeColumns(self): |
146 def __resizeColumns(self): |
147 """ |
147 """ |
148 Private method to resize the list columns. |
148 Private method to resize the list columns. |
149 """ |
149 """ |
150 self.blameList.header().resizeSections(QHeaderView.ResizeToContents) |
150 self.blameList.header().resizeSections(QHeaderView.ResizeToContents) |
151 self.blameList.header().setStretchLastSection(True) |
|
152 |
151 |
153 def __generateItem(self, revision, author, text): |
152 def __generateItem(self, revision, author, text): |
154 """ |
153 """ |
155 Private method to generate a tag item in the taglist. |
154 Private method to generate a blame item in the blame list. |
156 |
155 |
157 @param revision revision string (string) |
156 @param revision revision string (string) |
158 @param author author of the tag (string) |
157 @param author author of the change (string) |
159 @param date date of the tag (string) |
158 @param text line of text from the annotated file (string) |
160 @param name name (path) of the tag (string) |
|
161 """ |
159 """ |
162 itm = QTreeWidgetItem(self.blameList, |
160 itm = QTreeWidgetItem(self.blameList, |
163 [revision, author, "%d" % self.lineno, text]) |
161 [revision, author, "%d" % self.lineno, text]) |
164 self.lineno += 1 |
162 self.lineno += 1 |
165 itm.setTextAlignment(0, Qt.AlignRight) |
163 itm.setTextAlignment(0, Qt.AlignRight) |