eric6/Plugins/VcsPlugins/vcsMercurial/HgBranchInputDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
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

eric ide

mercurial