|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.WebBrowser.SafeBrowsing.SafeBrowsingLabel</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.WebBrowser.SafeBrowsing.SafeBrowsingLabel</h1> |
|
23 <p> |
|
24 Module implementing the label to show some SSL info. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#SafeBrowsingLabel">SafeBrowsingLabel</a></td> |
|
34 <td>Class implementing a label to show some Safe Browsing info.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="SafeBrowsingLabel" ID="SafeBrowsingLabel"></a> |
|
43 <h2>SafeBrowsingLabel</h2> |
|
44 <p> |
|
45 Class implementing a label to show some Safe Browsing info. |
|
46 </p><h3>Signals</h3> |
|
47 <dl> |
|
48 <dt>clicked(pos)</dt> |
|
49 <dd> |
|
50 emitted to indicate a click of the label (QPoint) |
|
51 </dd> |
|
52 </dl> |
|
53 <h3>Derived from</h3> |
|
54 QLabel |
|
55 <h3>Class Attributes</h3> |
|
56 <table> |
|
57 <tr><td>nokStyle</td></tr> |
|
58 </table> |
|
59 <h3>Class Methods</h3> |
|
60 <table> |
|
61 <tr><td>None</td></tr> |
|
62 </table> |
|
63 <h3>Methods</h3> |
|
64 <table> |
|
65 <tr> |
|
66 <td><a href="#SafeBrowsingLabel.__init__">SafeBrowsingLabel</a></td> |
|
67 <td>Constructor</td> |
|
68 </tr><tr> |
|
69 <td><a href="#SafeBrowsingLabel.__updateLabel">__updateLabel</a></td> |
|
70 <td>Private slot to update the label text.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#SafeBrowsingLabel.getThreatInfo">getThreatInfo</a></td> |
|
73 <td>Public method to get the threat info text.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#SafeBrowsingLabel.mouseDoubleClickEvent">mouseDoubleClickEvent</a></td> |
|
76 <td>Protected method to handle mouse double click events.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#SafeBrowsingLabel.mouseReleaseEvent">mouseReleaseEvent</a></td> |
|
79 <td>Protected method to handle mouse release events.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#SafeBrowsingLabel.setThreatInfo">setThreatInfo</a></td> |
|
82 <td>Public slot to set threat information.</td> |
|
83 </tr> |
|
84 </table> |
|
85 <h3>Static Methods</h3> |
|
86 <table> |
|
87 <tr><td>None</td></tr> |
|
88 </table> |
|
89 <a NAME="SafeBrowsingLabel.__init__" ID="SafeBrowsingLabel.__init__"></a> |
|
90 <h4>SafeBrowsingLabel (Constructor)</h4> |
|
91 <b>SafeBrowsingLabel</b>(<i>parent=None</i>) |
|
92 <p> |
|
93 Constructor |
|
94 </p><dl> |
|
95 <dt><i>parent</i></dt> |
|
96 <dd> |
|
97 reference to the parent widget (QWidget) |
|
98 </dd> |
|
99 </dl><a NAME="SafeBrowsingLabel.__updateLabel" ID="SafeBrowsingLabel.__updateLabel"></a> |
|
100 <h4>SafeBrowsingLabel.__updateLabel</h4> |
|
101 <b>__updateLabel</b>(<i></i>) |
|
102 <p> |
|
103 Private slot to update the label text. |
|
104 </p><a NAME="SafeBrowsingLabel.getThreatInfo" ID="SafeBrowsingLabel.getThreatInfo"></a> |
|
105 <h4>SafeBrowsingLabel.getThreatInfo</h4> |
|
106 <b>getThreatInfo</b>(<i></i>) |
|
107 <p> |
|
108 Public method to get the threat info text. |
|
109 </p><dl> |
|
110 <dt>Returns:</dt> |
|
111 <dd> |
|
112 threat info text |
|
113 </dd> |
|
114 </dl><dl> |
|
115 <dt>Return Type:</dt> |
|
116 <dd> |
|
117 str |
|
118 </dd> |
|
119 </dl><a NAME="SafeBrowsingLabel.mouseDoubleClickEvent" ID="SafeBrowsingLabel.mouseDoubleClickEvent"></a> |
|
120 <h4>SafeBrowsingLabel.mouseDoubleClickEvent</h4> |
|
121 <b>mouseDoubleClickEvent</b>(<i>evt</i>) |
|
122 <p> |
|
123 Protected method to handle mouse double click events. |
|
124 </p><dl> |
|
125 <dt><i>evt</i></dt> |
|
126 <dd> |
|
127 reference to the mouse event (QMouseEvent) |
|
128 </dd> |
|
129 </dl><a NAME="SafeBrowsingLabel.mouseReleaseEvent" ID="SafeBrowsingLabel.mouseReleaseEvent"></a> |
|
130 <h4>SafeBrowsingLabel.mouseReleaseEvent</h4> |
|
131 <b>mouseReleaseEvent</b>(<i>evt</i>) |
|
132 <p> |
|
133 Protected method to handle mouse release events. |
|
134 </p><dl> |
|
135 <dt><i>evt</i></dt> |
|
136 <dd> |
|
137 reference to the mouse event (QMouseEvent) |
|
138 </dd> |
|
139 </dl><a NAME="SafeBrowsingLabel.setThreatInfo" ID="SafeBrowsingLabel.setThreatInfo"></a> |
|
140 <h4>SafeBrowsingLabel.setThreatInfo</h4> |
|
141 <b>setThreatInfo</b>(<i>threatType, threatMessages</i>) |
|
142 <p> |
|
143 Public slot to set threat information. |
|
144 </p><dl> |
|
145 <dt><i>threatType</i> (str)</dt> |
|
146 <dd> |
|
147 threat type |
|
148 </dd><dt><i>threatMessages</i> (str)</dt> |
|
149 <dd> |
|
150 more verbose info about detected threats |
|
151 </dd> |
|
152 </dl> |
|
153 <div align="right"><a href="#top">Up</a></div> |
|
154 <hr /> |
|
155 </body></html> |