Plugins/VcsPlugins/vcsPySvn/SvnBlameDialog.py

changeset 176
ff52b55a90fb
parent 96
9624a110667d
child 424
d0915392cbd7
child 792
a13346916170
equal deleted inserted replaced
175:c55cab724965 176:ff52b55a90fb
108 def __resizeColumns(self): 108 def __resizeColumns(self):
109 """ 109 """
110 Private method to resize the list columns. 110 Private method to resize the list columns.
111 """ 111 """
112 self.blameList.header().resizeSections(QHeaderView.ResizeToContents) 112 self.blameList.header().resizeSections(QHeaderView.ResizeToContents)
113 self.blameList.header().setStretchLastSection(True)
114 113
115 def __generateItem(self, revision, author, lineno, text): 114 def __generateItem(self, revision, author, lineno, text):
116 """ 115 """
117 Private method to generate a tag item in the taglist. 116 Private method to generate a blame item in the blame list.
118 117
119 @param revision revision string (integer) 118 @param revision revision string (string)
120 @param author author of the tag (string) 119 @param author author of the change (string)
121 @param lineno line number (integer) 120 @param lineno linenumber (string)
122 @param text text of the line (string) 121 @param text line of text from the annotated file (string)
123 """ 122 """
124 itm = QTreeWidgetItem(self.blameList, 123 itm = QTreeWidgetItem(self.blameList,
125 ["%d" % revision, author, "%d" % lineno, text]) 124 ["%d" % revision, author, "%d" % lineno, text])
126 itm.setTextAlignment(0, Qt.AlignRight) 125 itm.setTextAlignment(0, Qt.AlignRight)
127 itm.setTextAlignment(2, Qt.AlignRight) 126 itm.setTextAlignment(2, Qt.AlignRight)

eric ide

mercurial