Plugins/VcsPlugins/vcsSubversion/SvnBlameDialog.py

changeset 176
ff52b55a90fb
parent 96
9624a110667d
child 425
ca5e65413fc5
child 792
a13346916170
equal deleted inserted replaced
175:c55cab724965 176:ff52b55a90fb
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)

eric ide

mercurial