206 @param changeset changeset of the bookmark (string) |
206 @param changeset changeset of the bookmark (string) |
207 @param status of the bookmark (string) |
207 @param status of the bookmark (string) |
208 @param name name of the bookmark (string) |
208 @param name name of the bookmark (string) |
209 """ |
209 """ |
210 itm = QTreeWidgetItem(self.bookmarksList) |
210 itm = QTreeWidgetItem(self.bookmarksList) |
211 itm.setData(0, Qt.DisplayRole, int(revision)) |
211 if revision[0].isdecimal(): |
212 itm.setData(1, Qt.DisplayRole, changeset) |
212 # valid bookmark entry |
213 itm.setData(2, Qt.DisplayRole, status) |
213 itm.setData(0, Qt.DisplayRole, int(revision)) |
214 itm.setData(3, Qt.DisplayRole, name) |
214 itm.setData(1, Qt.DisplayRole, changeset) |
215 itm.setTextAlignment(0, Qt.AlignRight) |
215 itm.setData(2, Qt.DisplayRole, status) |
216 itm.setTextAlignment(1, Qt.AlignRight) |
216 itm.setData(3, Qt.DisplayRole, name) |
217 itm.setTextAlignment(2, Qt.AlignHCenter) |
217 itm.setTextAlignment(0, Qt.AlignRight) |
|
218 itm.setTextAlignment(1, Qt.AlignRight) |
|
219 itm.setTextAlignment(2, Qt.AlignHCenter) |
|
220 else: |
|
221 # error message |
|
222 itm.setData(0, Qt.DisplayRole, revision) |
218 |
223 |
219 def __readStdout(self): |
224 def __readStdout(self): |
220 """ |
225 """ |
221 Private slot to handle the readyReadStdout signal. |
226 Private slot to handle the readyReadStdout signal. |
222 |
227 |