25 @param guards list of guards to select from (list of strings) |
25 @param guards list of guards to select from (list of strings) |
26 @param activeGuards list of active guards (list of strings) |
26 @param activeGuards list of active guards (list of strings) |
27 @param listOnly flag indicating to only list the guards (boolean) |
27 @param listOnly flag indicating to only list the guards (boolean) |
28 @param parent reference to the parent widget (QWidget) |
28 @param parent reference to the parent widget (QWidget) |
29 """ |
29 """ |
30 super(HgQueuesGuardsSelectionDialog, self).__init__(parent) |
30 super().__init__(parent) |
31 self.setupUi(self) |
31 self.setupUi(self) |
32 |
32 |
33 for guard in guards: |
33 for guard in guards: |
34 itm = QListWidgetItem(guard, self.guardsList) |
34 itm = QListWidgetItem(guard, self.guardsList) |
35 if activeGuards is not None and guard in activeGuards: |
35 if activeGuards is not None and guard in activeGuards: |