205 @param change revision of last change (integer) |
205 @param change revision of last change (integer) |
206 @param author author of the last change (string) |
206 @param author author of the last change (string) |
207 @param path path of the file or directory (string) |
207 @param path path of the file or directory (string) |
208 """ |
208 """ |
209 statusText = self.trUtf8(svnStatusMap[status]) |
209 statusText = self.trUtf8(svnStatusMap[status]) |
210 itm = QTreeWidgetItem(self.statusList, [ |
210 itm = QTreeWidgetItem(self.statusList) |
211 "", |
211 itm.setData(0, Qt.DisplayRole, "") |
212 changelist, |
212 itm.setData(1, Qt.DisplayRole, changelist) |
213 statusText, |
213 itm.setData(2, Qt.DisplayRole, statusText) |
214 self.trUtf8(svnStatusMap[propStatus]), |
214 itm.setData(3, Qt.DisplayRole, self.trUtf8(svnStatusMap[propStatus])) |
215 self.yesno[locked], |
215 itm.setData(4, Qt.DisplayRole, self.yesno[locked]) |
216 self.yesno[history], |
216 itm.setData(5, Qt.DisplayRole, self.yesno[history]) |
217 self.yesno[switched], |
217 itm.setData(6, Qt.DisplayRole, self.yesno[switched]) |
218 self.lockinfo[lockinfo], |
218 itm.setData(7, Qt.DisplayRole, self.lockinfo[lockinfo]) |
219 self.yesno[uptodate], |
219 itm.setData(8, Qt.DisplayRole, self.yesno[uptodate]) |
220 "{0:7}".format(str(revision)), |
220 itm.setData(9, Qt.DisplayRole, revision) |
221 "{0:7}".format(str(change)), |
221 itm.setData(10, Qt.DisplayRole, change) |
222 author, |
222 itm.setData(11, Qt.DisplayRole, author) |
223 path, |
223 itm.setData(12, Qt.DisplayRole, path) |
224 ]) |
|
225 |
224 |
226 itm.setTextAlignment(1, Qt.AlignLeft) |
225 itm.setTextAlignment(1, Qt.AlignLeft) |
227 itm.setTextAlignment(2, Qt.AlignHCenter) |
226 itm.setTextAlignment(2, Qt.AlignHCenter) |
228 itm.setTextAlignment(3, Qt.AlignHCenter) |
227 itm.setTextAlignment(3, Qt.AlignHCenter) |
229 itm.setTextAlignment(4, Qt.AlignHCenter) |
228 itm.setTextAlignment(4, Qt.AlignHCenter) |