21 def __init__(self, branches, parent=None): |
21 def __init__(self, branches, parent=None): |
22 """ |
22 """ |
23 Constructor |
23 Constructor |
24 |
24 |
25 @param branches branch names to populate the branch list with |
25 @param branches branch names to populate the branch list with |
26 (list of string) |
26 @type list of str |
27 @param parent reference to the parent widget (QWidget) |
27 @param parent reference to the parent widget |
|
28 @type QWidget |
28 """ |
29 """ |
29 super().__init__(parent) |
30 super().__init__(parent) |
30 self.setupUi(self) |
31 self.setupUi(self) |
31 |
32 |
32 self.branchComboBox.addItems(sorted(branches)) |
33 self.branchComboBox.addItems(sorted(branches)) |
40 @pyqtSlot(str) |
41 @pyqtSlot(str) |
41 def on_branchComboBox_editTextChanged(self, txt): |
42 def on_branchComboBox_editTextChanged(self, txt): |
42 """ |
43 """ |
43 Private slot handling a change of the branch name. |
44 Private slot handling a change of the branch name. |
44 |
45 |
45 @param txt contents of the branch combo box (string) |
46 @param txt contents of the branch combo box |
|
47 @type str |
46 """ |
48 """ |
47 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt)) |
49 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt)) |
48 |
50 |
49 def getData(self): |
51 def getData(self): |
50 """ |
52 """ |