198 @param revision revision of the bookmark (string) |
198 @param revision revision of the bookmark (string) |
199 @param changeset changeset of the bookmark (string) |
199 @param changeset changeset of the bookmark (string) |
200 @param status of the bookmark (string) |
200 @param status of the bookmark (string) |
201 @param name name of the bookmark (string) |
201 @param name name of the bookmark (string) |
202 """ |
202 """ |
203 itm = QTreeWidgetItem(self.bookmarksList, [ |
203 itm = QTreeWidgetItem(self.bookmarksList) |
204 "{0:>7}".format(revision), |
204 itm.setData(0, Qt.DisplayRole, int(revision)) |
205 changeset, |
205 itm.setData(1, Qt.DisplayRole, changeset) |
206 status, |
206 itm.setData(2, Qt.DisplayRole, status) |
207 name]) |
207 itm.setData(3, Qt.DisplayRole, name) |
208 itm.setTextAlignment(0, Qt.AlignRight) |
208 itm.setTextAlignment(0, Qt.AlignRight) |
209 itm.setTextAlignment(1, Qt.AlignRight) |
209 itm.setTextAlignment(1, Qt.AlignRight) |
210 itm.setTextAlignment(2, Qt.AlignHCenter) |
210 itm.setTextAlignment(2, Qt.AlignHCenter) |
211 |
211 |
212 def __readStdout(self): |
212 def __readStdout(self): |