eric6/Network/IRC/IrcChannelEditDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
36 self.keyEdit.setText(key) 36 self.keyEdit.setText(key)
37 self.autoJoinCheckBox.setChecked(autoJoin) 37 self.autoJoinCheckBox.setChecked(autoJoin)
38 38
39 self.nameEdit.setReadOnly(edit) 39 self.nameEdit.setReadOnly(edit)
40 40
41 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(name != "") 41 self.buttonBox.button(
42 QDialogButtonBox.StandardButton.Ok).setEnabled(name != "")
42 43
43 msh = self.minimumSizeHint() 44 msh = self.minimumSizeHint()
44 self.resize(max(self.width(), msh.width()), msh.height()) 45 self.resize(max(self.width(), msh.width()), msh.height())
45 46
46 @pyqtSlot(str) 47 @pyqtSlot(str)
48 """ 49 """
49 Private slot to handle changes of the given name. 50 Private slot to handle changes of the given name.
50 51
51 @param txt text of the edit (string) 52 @param txt text of the edit (string)
52 """ 53 """
53 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(txt != "") 54 self.buttonBox.button(
55 QDialogButtonBox.StandardButton.Ok).setEnabled(txt != "")
54 56
55 def getData(self): 57 def getData(self):
56 """ 58 """
57 Public method to get the channel data. 59 Public method to get the channel data.
58 60

eric ide

mercurial