27 @param parent parent widget of the dialog (QWidget) |
27 @param parent parent widget of the dialog (QWidget) |
28 """ |
28 """ |
29 super(GitRevisionsSelectionDialog, self).__init__(parent) |
29 super(GitRevisionsSelectionDialog, self).__init__(parent) |
30 self.setupUi(self) |
30 self.setupUi(self) |
31 |
31 |
32 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
32 self.buttonBox.button( |
|
33 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
33 |
34 |
34 self.tag1Combo.addItems(sorted(tagsList)) |
35 self.tag1Combo.addItems(sorted(tagsList)) |
35 self.tag2Combo.addItems(sorted(tagsList)) |
36 self.tag2Combo.addItems(sorted(tagsList)) |
36 self.branch1Combo.addItems(["master"] + sorted(branchesList)) |
37 self.branch1Combo.addItems(["master"] + sorted(branchesList)) |
37 self.branch2Combo.addItems(["master"] + sorted(branchesList)) |
38 self.branch2Combo.addItems(["master"] + sorted(branchesList)) |
56 elif self.tag2Button.isChecked(): |
57 elif self.tag2Button.isChecked(): |
57 enabled = enabled and self.tag2Combo.currentText() != "" |
58 enabled = enabled and self.tag2Combo.currentText() != "" |
58 elif self.branch2Button.isChecked(): |
59 elif self.branch2Button.isChecked(): |
59 enabled = enabled and self.branch2Combo.currentText() != "" |
60 enabled = enabled and self.branch2Combo.currentText() != "" |
60 |
61 |
61 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
62 self.buttonBox.button( |
|
63 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
62 |
64 |
63 @pyqtSlot(bool) |
65 @pyqtSlot(bool) |
64 def on_rev1Button_toggled(self, checked): |
66 def on_rev1Button_toggled(self, checked): |
65 """ |
67 """ |
66 Private slot to handle changes of the rev1 select button. |
68 Private slot to handle changes of the rev1 select button. |