eric6/Plugins/VcsPlugins/vcsMercurial/HgUserConfigHostFingerprintDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
84 enabled &= ( 84 enabled &= (
85 len(self.fingerprintEdit.text().replace(":", "")) == 85 len(self.fingerprintEdit.text().replace(":", "")) ==
86 HgUserConfigHostFingerprintDialog.fingerprintLength[ 86 HgUserConfigHostFingerprintDialog.fingerprintLength[
87 hashType]) 87 hashType])
88 88
89 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) 89 self.buttonBox.button(
90 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled)
90 91
91 @pyqtSlot(str) 92 @pyqtSlot(str)
92 def on_hostEdit_textChanged(self, txt): 93 def on_hostEdit_textChanged(self, txt):
93 """ 94 """
94 Private slot to handle changes of the host edit. 95 Private slot to handle changes of the host edit.
96 @param txt current text 97 @param txt current text
97 @type str 98 @type str
98 """ 99 """
99 self.__updateOkButton() 100 self.__updateOkButton()
100 101
101 @pyqtSlot(str) 102 @pyqtSlot(int)
102 def on_hashComboBox_currentIndexChanged(self, txt): 103 def on_hashComboBox_currentIndexChanged(self, index):
103 """ 104 """
104 Private slot to handle changes of the hash combo. 105 Private slot to handle changes of the hash combo.
105 106
106 @param txt current text 107 @param index current index
107 @type str 108 @type int
108 """ 109 """
109 self.__updateOkButton() 110 self.__updateOkButton()
110 111
111 @pyqtSlot(str) 112 @pyqtSlot(str)
112 def on_fingerprintEdit_textChanged(self, txt): 113 def on_fingerprintEdit_textChanged(self, txt):

eric ide

mercurial