29 self.setupUi(self) |
29 self.setupUi(self) |
30 |
30 |
31 self.branchComboBox.addItems(sorted(branches)) |
31 self.branchComboBox.addItems(sorted(branches)) |
32 self.branchComboBox.setEditText("") |
32 self.branchComboBox.setEditText("") |
33 |
33 |
34 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
34 self.buttonBox.button( |
|
35 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
35 |
36 |
36 msh = self.minimumSizeHint() |
37 msh = self.minimumSizeHint() |
37 self.resize(max(self.width(), msh.width()), msh.height()) |
38 self.resize(max(self.width(), msh.width()), msh.height()) |
38 |
39 |
39 @pyqtSlot(str) |
40 @pyqtSlot(str) |
41 """ |
42 """ |
42 Private slot handling a change of the branch name. |
43 Private slot handling a change of the branch name. |
43 |
44 |
44 @param txt contents of the branch combo box (string) |
45 @param txt contents of the branch combo box (string) |
45 """ |
46 """ |
46 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(bool(txt)) |
47 self.buttonBox.button( |
|
48 QDialogButtonBox.StandardButton.Ok).setEnabled(bool(txt)) |
47 |
49 |
48 def getData(self): |
50 def getData(self): |
49 """ |
51 """ |
50 Public method to get the data. |
52 Public method to get the data. |
51 |
53 |