28 @param parent parent widget of the dialog (QWidget) |
28 @param parent parent widget of the dialog (QWidget) |
29 """ |
29 """ |
30 super(HgRevisionsSelectionDialog, self).__init__(parent) |
30 super(HgRevisionsSelectionDialog, self).__init__(parent) |
31 self.setupUi(self) |
31 self.setupUi(self) |
32 |
32 |
33 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
33 self.buttonBox.button( |
|
34 QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
34 |
35 |
35 self.tag1Combo.addItems(sorted(tagsList)) |
36 self.tag1Combo.addItems(sorted(tagsList)) |
36 self.tag2Combo.addItems(sorted(tagsList)) |
37 self.tag2Combo.addItems(sorted(tagsList)) |
37 self.branch1Combo.addItems(["default"] + sorted(branchesList)) |
38 self.branch1Combo.addItems(["default"] + sorted(branchesList)) |
38 self.branch2Combo.addItems(["default"] + sorted(branchesList)) |
39 self.branch2Combo.addItems(["default"] + sorted(branchesList)) |
69 elif self.branch2Button.isChecked(): |
70 elif self.branch2Button.isChecked(): |
70 enabled = enabled and self.branch2Combo.currentText() != "" |
71 enabled = enabled and self.branch2Combo.currentText() != "" |
71 elif self.bookmark2Button.isChecked(): |
72 elif self.bookmark2Button.isChecked(): |
72 enabled = enabled and self.bookmark2Combo.currentText() != "" |
73 enabled = enabled and self.bookmark2Combo.currentText() != "" |
73 |
74 |
74 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
75 self.buttonBox.button( |
|
76 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
75 |
77 |
76 @pyqtSlot(bool) |
78 @pyqtSlot(bool) |
77 def on_id1Button_toggled(self, checked): |
79 def on_id1Button_toggled(self, checked): |
78 """ |
80 """ |
79 Private slot to handle changes of the ID1 select button. |
81 Private slot to handle changes of the ID1 select button. |