eric6/E5Network/E5SslInfoWidget.py

changeset 7945
76daafe10009
parent 7923
91e843545d9a
child 8043
0acf98cd089a
child 8143
2c730d5fd177
equal deleted inserted replaced
7941:cf988a30ba47 7945:76daafe10009
153 UI.PixmapCache.getPixmap("securityHigh32")) 153 UI.PixmapCache.getPixmap("securityHigh32"))
154 elif proto == QSsl.TlsV1_2: 154 elif proto == QSsl.TlsV1_2:
155 sslVersion = "TLS 1.2" 155 sslVersion = "TLS 1.2"
156 imageLabel.setPixmap( 156 imageLabel.setPixmap(
157 UI.PixmapCache.getPixmap("securityHigh32")) 157 UI.PixmapCache.getPixmap("securityHigh32"))
158 try: 158 elif proto == QSsl.TlsV1_3:
159 # Qt 5.12 and newer 159 sslVersion = "TLS 1.3"
160 if proto == QSsl.TlsV1_2: 160 imageLabel.setPixmap(
161 sslVersion = "TLS 1.2" 161 UI.PixmapCache.getPixmap("securityHigh32"))
162 imageLabel.setPixmap(
163 UI.PixmapCache.getPixmap("securityHigh32"))
164 except AttributeError:
165 pass
166 rows += 1 162 rows += 1
167 163
168 label = QLabel(self) 164 label = QLabel(self)
169 label.setWordWrap(True) 165 label.setWordWrap(True)
170 label.setText(self.tr( 166 label.setText(self.tr(

eric ide

mercurial