eric6/Plugins/VcsPlugins/vcsMercurial/HgBundleDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
34 @type QWidget 34 @type QWidget
35 """ 35 """
36 super(HgBundleDialog, self).__init__(parent) 36 super(HgBundleDialog, self).__init__(parent)
37 self.setupUi(self) 37 self.setupUi(self)
38 38
39 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 39 self.buttonBox.button(
40 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
40 41
41 self.__version = version 42 self.__version = version
42 43
43 bundleTypes = ["", "bzip2", "gzip", "none"] 44 bundleTypes = ["", "bzip2", "gzip", "none"]
44 if version >= (4, 1, 0): 45 if version >= (4, 1, 0):
64 elif self.branchButton.isChecked(): 65 elif self.branchButton.isChecked():
65 enabled = self.branchCombo.currentText() != "" 66 enabled = self.branchCombo.currentText() != ""
66 elif self.bookmarkButton.isChecked(): 67 elif self.bookmarkButton.isChecked():
67 enabled = self.bookmarkCombo.currentText() != "" 68 enabled = self.bookmarkCombo.currentText() != ""
68 69
69 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) 70 self.buttonBox.button(
71 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled)
70 72
71 @pyqtSlot(bool) 73 @pyqtSlot(bool)
72 def on_multipleButton_toggled(self, checked): 74 def on_multipleButton_toggled(self, checked):
73 """ 75 """
74 Private slot to handle changes of the Multiple select button. 76 Private slot to handle changes of the Multiple select button.

eric ide

mercurial