Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesGuardsSelectionDialog.py

changeset 1131
7781e396c903
parent 1047
b41a36b201e4
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
23 @param guards list of guards to select from (list of strings) 23 @param guards list of guards to select from (list of strings)
24 @keyparam activeGuards list of active guards (list of strings) 24 @keyparam activeGuards list of active guards (list of strings)
25 @param listOnly flag indicating to only list the guards (boolean) 25 @param listOnly flag indicating to only list the guards (boolean)
26 @param parent reference to the parent widget (QWidget) 26 @param parent reference to the parent widget (QWidget)
27 """ 27 """
28 QDialog.__init__(self, parent) 28 super().__init__(parent)
29 self.setupUi(self) 29 self.setupUi(self)
30 30
31 for guard in guards: 31 for guard in guards:
32 itm = QListWidgetItem(guard, self.guardsList) 32 itm = QListWidgetItem(guard, self.guardsList)
33 if activeGuards is not None and guard in activeGuards: 33 if activeGuards is not None and guard in activeGuards:

eric ide

mercurial