36 """ |
36 """ |
37 super().__init__(parent) |
37 super().__init__(parent) |
38 self.setupUi(self) |
38 self.setupUi(self) |
39 |
39 |
40 self.timeoutSpinBox.setToolTip( |
40 self.timeoutSpinBox.setToolTip( |
41 self.tr("Enter the timeout for the connection attempt (default: {0} s.") |
41 self.tr( |
42 .format(Preferences.getEricServer("ConnectionTimeout")) |
42 "Enter the timeout for the connection attempt (default: {0} s." |
|
43 ).format(Preferences.getEricServer("ConnectionTimeout")) |
43 ) |
44 ) |
44 |
45 |
45 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
46 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(False) |
46 |
47 |
47 if profileNames is None: |
48 if profileNames is None: |
56 self.hostnameEdit.textChanged.connect(self.__updateOK) |
57 self.hostnameEdit.textChanged.connect(self.__updateOK) |
57 |
58 |
58 msh = self.minimumSizeHint() |
59 msh = self.minimumSizeHint() |
59 self.resize(max(self.width(), msh.width()), msh.height()) |
60 self.resize(max(self.width(), msh.width()), msh.height()) |
60 |
61 |
61 @pyqtSlot(str) |
|
62 def on_hostnameEdit_textChanged(self, hostname): |
|
63 """ |
|
64 Private slot handling a change of the hostname. |
|
65 |
|
66 @param hostname text of the host name field |
|
67 @type str |
|
68 """ |
|
69 @pyqtSlot() |
62 @pyqtSlot() |
70 def __updateOK(self): |
63 def __updateOK(self): |
71 """ |
64 """ |
72 Private slot to update the enabled state of the OK button. |
65 Private slot to update the enabled state of the OK button. |
73 """ |
66 """ |