Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/HgBookmarksListDialog.py

changeset 1640
1699d46026cd
parent 1532
df0c2a045c72
child 2302
f29e9405c851
equal deleted inserted replaced
1639:294476b9c714 1640:1699d46026cd
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):

eric ide

mercurial