283 "", |
283 "", |
284 summary |
284 summary |
285 ]) |
285 ]) |
286 else: |
286 else: |
287 if index == -1: |
287 if index == -1: |
288 indexStr = "" |
288 index = "" |
289 else: |
|
290 indexStr = "{0:>7}".format(index) |
|
291 try: |
289 try: |
292 statusStr = self.__statusDict[status] |
290 statusStr = self.__statusDict[status] |
293 except KeyError: |
291 except KeyError: |
294 statusStr = self.trUtf8("unknown") |
292 statusStr = self.trUtf8("unknown") |
295 itm = QTreeWidgetItem(self.patchesList, [ |
293 itm = QTreeWidgetItem(self.patchesList) |
296 indexStr, |
294 itm.setData(0, Qt.DisplayRole, index) |
297 name, |
295 itm.setData(1, Qt.DisplayRole, name) |
298 statusStr, |
296 itm.setData(2, Qt.DisplayRole, statusStr) |
299 summary |
297 itm.setData(3, Qt.DisplayRole, summary) |
300 ]) |
|
301 if status == "A": |
298 if status == "A": |
302 # applied |
299 # applied |
303 for column in range(itm.columnCount()): |
300 for column in range(itm.columnCount()): |
304 itm.setForeground(column, Qt.blue) |
301 itm.setForeground(column, Qt.blue) |
305 elif status == "D": |
302 elif status == "D": |