src/eric7/EricNetwork/EricSslCertificatesInfoWidget.py

branch
eric7
changeset 10503
6a37b6ac3928
parent 10439
21c28b0f9e41
child 10928
46651e194fbe
equal deleted inserted replaced
10502:89b8e0a67fde 10503:6a37b6ac3928
87 87
88 @param certificate reference to the SSL certificate 88 @param certificate reference to the SSL certificate
89 @type QSslCertificate 89 @type QSslCertificate
90 """ 90 """
91 if QSslCertificate: 91 if QSslCertificate:
92 self.blacklistedLabel.setVisible(False) 92 self.prohibitedLabel.setVisible(False)
93 self.blacklistedLabel.setStyleSheet( 93 self.prohibitedLabel.setStyleSheet(
94 "QLabel { color : white; background-color : red; }" 94 "QLabel { color : white; background-color : red; }"
95 ) 95 )
96 self.expiredLabel.setVisible(False) 96 self.expiredLabel.setVisible(False)
97 self.expiredLabel.setStyleSheet( 97 self.expiredLabel.setStyleSheet(
98 "QLabel { color : white; background-color : red; }" 98 "QLabel { color : white; background-color : red; }"
173 if self.__hasExpired( 173 if self.__hasExpired(
174 certificate.effectiveDate(), certificate.expiryDate() 174 certificate.effectiveDate(), certificate.expiryDate()
175 ): 175 ):
176 self.expiredLabel.setVisible(True) 176 self.expiredLabel.setVisible(True)
177 else: 177 else:
178 self.blacklistedLabel.setVisible(True) 178 self.prohibitedLabel.setVisible(True)
179 179
180 def __certificateString(self, txt): 180 def __certificateString(self, txt):
181 """ 181 """
182 Private method to prepare some text for display. 182 Private method to prepare some text for display.
183 183

eric ide

mercurial