37 font.setBold(True) |
37 font.setBold(True) |
38 itm.setFont(font) |
38 itm.setFont(font) |
39 self.guardsList.sortItems() |
39 self.guardsList.sortItems() |
40 |
40 |
41 if listOnly: |
41 if listOnly: |
42 self.buttonBox.button(QDialogButtonBox.Cancel).hide() |
42 self.buttonBox.button( |
43 self.guardsList.setSelectionMode(QAbstractItemView.NoSelection) |
43 QDialogButtonBox.StandardButton.Cancel).hide() |
|
44 self.guardsList.setSelectionMode( |
|
45 QAbstractItemView.SelectionMode.NoSelection) |
44 self.setWindowTitle(self.tr("Active Guards")) |
46 self.setWindowTitle(self.tr("Active Guards")) |
45 |
47 |
46 def getData(self): |
48 def getData(self): |
47 """ |
49 """ |
48 Public method to retrieve the data. |
50 Public method to retrieve the data. |