src/eric7/WebBrowser/UrlBar/SslLabel.py

branch
eric7
changeset 10436
f6881d10e995
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
22 22
23 def __init__(self, parent=None): 23 def __init__(self, parent=None):
24 """ 24 """
25 Constructor 25 Constructor
26 26
27 @param parent reference to the parent widget (QWidget) 27 @param parent reference to the parent widget
28 @type QWidget
28 """ 29 """
29 super().__init__(parent) 30 super().__init__(parent)
30 31
31 self.setFocusPolicy(Qt.FocusPolicy.NoFocus) 32 self.setFocusPolicy(Qt.FocusPolicy.NoFocus)
32 33
33 def setValidity(self, valid): 34 def setValidity(self, valid):
34 """ 35 """
35 Public method to set the validity indication. 36 Public method to set the validity indication.
36 37
37 @param valid flag indicating the certificate validity (boolean) 38 @param valid flag indicating the certificate validity
39 @type bool
38 """ 40 """
39 if valid: 41 if valid:
40 self.setStyleSheet(SslLabel.okStyle) 42 self.setStyleSheet(SslLabel.okStyle)
41 else: 43 else:
42 self.setStyleSheet(SslLabel.nokStyle) 44 self.setStyleSheet(SslLabel.nokStyle)

eric ide

mercurial