eric6/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListAllGuardsDialog.py

changeset 7533
88261c96484b
parent 7370
5fb53279f2df
child 7923
91e843545d9a
equal deleted inserted replaced
7532:1358e9d67a1c 7533:88261c96484b
67 for patchName in sorted(guardsDict.keys()): 67 for patchName in sorted(guardsDict.keys()):
68 patchItm = QTreeWidgetItem(self.guardsTree, [patchName]) 68 patchItm = QTreeWidgetItem(self.guardsTree, [patchName])
69 patchItm.setExpanded(True) 69 patchItm.setExpanded(True)
70 for guard in guardsDict[patchName]: 70 for guard in guardsDict[patchName]:
71 if guard.startswith("+"): 71 if guard.startswith("+"):
72 icon = UI.PixmapCache.getIcon("plus.png") 72 icon = UI.PixmapCache.getIcon("plus")
73 guard = guard[1:] 73 guard = guard[1:]
74 elif guard.startswith("-"): 74 elif guard.startswith("-"):
75 icon = UI.PixmapCache.getIcon("minus.png") 75 icon = UI.PixmapCache.getIcon("minus")
76 guard = guard[1:] 76 guard = guard[1:]
77 else: 77 else:
78 icon = None 78 icon = None
79 guard = self.tr("Unguarded") 79 guard = self.tr("Unguarded")
80 itm = QTreeWidgetItem(patchItm, [guard]) 80 itm = QTreeWidgetItem(patchItm, [guard])

eric ide

mercurial