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_3: |
160 imageLabel.setPixmap( |
161 sslVersion = "TLS 1.3" |
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( |