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(QDialogButtonBox.Ok).setEnabled(name != "") |
|
42 |
|
43 msh = self.minimumSizeHint() |
|
44 self.resize(max(self.width(), msh.width()), msh.height()) |
42 |
45 |
43 @pyqtSlot(str) |
46 @pyqtSlot(str) |
44 def on_nameEdit_textChanged(self, txt): |
47 def on_nameEdit_textChanged(self, txt): |
45 """ |
48 """ |
46 Private slot to handle changes of the given name. |
49 Private slot to handle changes of the given name. |