16 |
16 |
17 a { color: #BA6D36; } |
17 a { color: #BA6D36; } |
18 |
18 |
19 </style> |
19 </style> |
20 </head> |
20 </head> |
21 <body><a NAME="top" ID="top"></a> |
21 <body> |
|
22 <a NAME="top" ID="top"></a> |
22 <h1>eric6.WebBrowser.Passwords.PasswordModel</h1> |
23 <h1>eric6.WebBrowser.Passwords.PasswordModel</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a model for password management. |
26 Module implementing a model for password management. |
25 </p> |
27 </p> |
26 <h3>Global Attributes</h3> |
28 <h3>Global Attributes</h3> |
|
29 |
27 <table> |
30 <table> |
28 <tr><td>None</td></tr> |
31 <tr><td>None</td></tr> |
29 </table> |
32 </table> |
30 <h3>Classes</h3> |
33 <h3>Classes</h3> |
31 <table> |
34 |
|
35 <table> |
|
36 |
32 <tr> |
37 <tr> |
33 <td><a href="#PasswordModel">PasswordModel</a></td> |
38 <td><a href="#PasswordModel">PasswordModel</a></td> |
34 <td>Class implementing a model for password management.</td> |
39 <td>Class implementing a model for password management.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
38 <table> |
43 |
39 <tr><td>None</td></tr> |
44 <table> |
40 </table> |
45 <tr><td>None</td></tr> |
41 <hr /><hr /> |
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
42 <a NAME="PasswordModel" ID="PasswordModel"></a> |
49 <a NAME="PasswordModel" ID="PasswordModel"></a> |
43 <h2>PasswordModel</h2> |
50 <h2>PasswordModel</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing a model for password management. |
53 Class implementing a model for password management. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QAbstractTableModel |
56 QAbstractTableModel |
49 <h3>Class Attributes</h3> |
57 <h3>Class Attributes</h3> |
|
58 |
50 <table> |
59 <table> |
51 <tr><td>None</td></tr> |
60 <tr><td>None</td></tr> |
52 </table> |
61 </table> |
53 <h3>Class Methods</h3> |
62 <h3>Class Methods</h3> |
|
63 |
54 <table> |
64 <table> |
55 <tr><td>None</td></tr> |
65 <tr><td>None</td></tr> |
56 </table> |
66 </table> |
57 <h3>Methods</h3> |
67 <h3>Methods</h3> |
58 <table> |
68 |
|
69 <table> |
|
70 |
59 <tr> |
71 <tr> |
60 <td><a href="#PasswordModel.__init__">PasswordModel</a></td> |
72 <td><a href="#PasswordModel.__init__">PasswordModel</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#PasswordModel.__passwordsChanged">__passwordsChanged</a></td> |
76 <td><a href="#PasswordModel.__passwordsChanged">__passwordsChanged</a></td> |
64 <td>Private slot handling a change of the registered passwords.</td> |
77 <td>Private slot handling a change of the registered passwords.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#PasswordModel.columnCount">columnCount</a></td> |
80 <td><a href="#PasswordModel.columnCount">columnCount</a></td> |
67 <td>Public method to get the number of columns of the model.</td> |
81 <td>Public method to get the number of columns of the model.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#PasswordModel.data">data</a></td> |
84 <td><a href="#PasswordModel.data">data</a></td> |
70 <td>Public method to get data from the model.</td> |
85 <td>Public method to get data from the model.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#PasswordModel.headerData">headerData</a></td> |
88 <td><a href="#PasswordModel.headerData">headerData</a></td> |
73 <td>Public method to get the header data.</td> |
89 <td>Public method to get the header data.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#PasswordModel.removeRows">removeRows</a></td> |
92 <td><a href="#PasswordModel.removeRows">removeRows</a></td> |
76 <td>Public method to remove entries from the model.</td> |
93 <td>Public method to remove entries from the model.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#PasswordModel.rowCount">rowCount</a></td> |
96 <td><a href="#PasswordModel.rowCount">rowCount</a></td> |
79 <td>Public method to get the number of rows of the model.</td> |
97 <td>Public method to get the number of rows of the model.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#PasswordModel.setShowPasswords">setShowPasswords</a></td> |
100 <td><a href="#PasswordModel.setShowPasswords">setShowPasswords</a></td> |
82 <td>Public methods to show passwords.</td> |
101 <td>Public methods to show passwords.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#PasswordModel.showPasswords">showPasswords</a></td> |
104 <td><a href="#PasswordModel.showPasswords">showPasswords</a></td> |
85 <td>Public method to indicate, if passwords shall be shown.</td> |
105 <td>Public method to indicate, if passwords shall be shown.</td> |
86 </tr> |
106 </tr> |
87 </table> |
107 </table> |
88 <h3>Static Methods</h3> |
108 <h3>Static Methods</h3> |
89 <table> |
109 |
90 <tr><td>None</td></tr> |
110 <table> |
91 </table> |
111 <tr><td>None</td></tr> |
|
112 </table> |
|
113 |
92 <a NAME="PasswordModel.__init__" ID="PasswordModel.__init__"></a> |
114 <a NAME="PasswordModel.__init__" ID="PasswordModel.__init__"></a> |
93 <h4>PasswordModel (Constructor)</h4> |
115 <h4>PasswordModel (Constructor)</h4> |
94 <b>PasswordModel</b>(<i>manager, parent=None</i>) |
116 <b>PasswordModel</b>(<i>manager, parent=None</i>) |
|
117 |
95 <p> |
118 <p> |
96 Constructor |
119 Constructor |
97 </p><dl> |
120 </p> |
|
121 <dl> |
|
122 |
98 <dt><i>manager</i></dt> |
123 <dt><i>manager</i></dt> |
99 <dd> |
124 <dd> |
100 reference to the password manager (PasswordManager) |
125 reference to the password manager (PasswordManager) |
101 </dd><dt><i>parent</i></dt> |
126 </dd> |
|
127 <dt><i>parent</i></dt> |
102 <dd> |
128 <dd> |
103 reference to the parent object (QObject) |
129 reference to the parent object (QObject) |
104 </dd> |
130 </dd> |
105 </dl><a NAME="PasswordModel.__passwordsChanged" ID="PasswordModel.__passwordsChanged"></a> |
131 </dl> |
|
132 <a NAME="PasswordModel.__passwordsChanged" ID="PasswordModel.__passwordsChanged"></a> |
106 <h4>PasswordModel.__passwordsChanged</h4> |
133 <h4>PasswordModel.__passwordsChanged</h4> |
107 <b>__passwordsChanged</b>(<i></i>) |
134 <b>__passwordsChanged</b>(<i></i>) |
|
135 |
108 <p> |
136 <p> |
109 Private slot handling a change of the registered passwords. |
137 Private slot handling a change of the registered passwords. |
110 </p><a NAME="PasswordModel.columnCount" ID="PasswordModel.columnCount"></a> |
138 </p> |
|
139 <a NAME="PasswordModel.columnCount" ID="PasswordModel.columnCount"></a> |
111 <h4>PasswordModel.columnCount</h4> |
140 <h4>PasswordModel.columnCount</h4> |
112 <b>columnCount</b>(<i>parent=None</i>) |
141 <b>columnCount</b>(<i>parent=None</i>) |
|
142 |
113 <p> |
143 <p> |
114 Public method to get the number of columns of the model. |
144 Public method to get the number of columns of the model. |
115 </p><dl> |
145 </p> |
|
146 <dl> |
|
147 |
116 <dt><i>parent</i></dt> |
148 <dt><i>parent</i></dt> |
117 <dd> |
149 <dd> |
118 parent index (QModelIndex) (Unused) |
150 parent index (QModelIndex) (Unused) |
119 </dd> |
151 </dd> |
120 </dl><dl> |
152 </dl> |
|
153 <dl> |
121 <dt>Returns:</dt> |
154 <dt>Returns:</dt> |
122 <dd> |
155 <dd> |
123 number of columns (integer) |
156 number of columns (integer) |
124 </dd> |
157 </dd> |
125 </dl><a NAME="PasswordModel.data" ID="PasswordModel.data"></a> |
158 </dl> |
|
159 <a NAME="PasswordModel.data" ID="PasswordModel.data"></a> |
126 <h4>PasswordModel.data</h4> |
160 <h4>PasswordModel.data</h4> |
127 <b>data</b>(<i>index, role</i>) |
161 <b>data</b>(<i>index, role</i>) |
|
162 |
128 <p> |
163 <p> |
129 Public method to get data from the model. |
164 Public method to get data from the model. |
130 </p><dl> |
165 </p> |
|
166 <dl> |
|
167 |
131 <dt><i>index</i></dt> |
168 <dt><i>index</i></dt> |
132 <dd> |
169 <dd> |
133 index to get data for (QModelIndex) |
170 index to get data for (QModelIndex) |
134 </dd><dt><i>role</i></dt> |
171 </dd> |
|
172 <dt><i>role</i></dt> |
135 <dd> |
173 <dd> |
136 role of the data to retrieve (integer) |
174 role of the data to retrieve (integer) |
137 </dd> |
175 </dd> |
138 </dl><dl> |
176 </dl> |
|
177 <dl> |
139 <dt>Returns:</dt> |
178 <dt>Returns:</dt> |
140 <dd> |
179 <dd> |
141 requested data |
180 requested data |
142 </dd> |
181 </dd> |
143 </dl><a NAME="PasswordModel.headerData" ID="PasswordModel.headerData"></a> |
182 </dl> |
|
183 <a NAME="PasswordModel.headerData" ID="PasswordModel.headerData"></a> |
144 <h4>PasswordModel.headerData</h4> |
184 <h4>PasswordModel.headerData</h4> |
145 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
185 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
|
186 |
146 <p> |
187 <p> |
147 Public method to get the header data. |
188 Public method to get the header data. |
148 </p><dl> |
189 </p> |
|
190 <dl> |
|
191 |
149 <dt><i>section</i></dt> |
192 <dt><i>section</i></dt> |
150 <dd> |
193 <dd> |
151 section number (integer) |
194 section number (integer) |
152 </dd><dt><i>orientation</i></dt> |
195 </dd> |
|
196 <dt><i>orientation</i></dt> |
153 <dd> |
197 <dd> |
154 header orientation (Qt.Orientation) |
198 header orientation (Qt.Orientation) |
155 </dd><dt><i>role</i></dt> |
199 </dd> |
|
200 <dt><i>role</i></dt> |
156 <dd> |
201 <dd> |
157 data role (integer) |
202 data role (integer) |
158 </dd> |
203 </dd> |
159 </dl><dl> |
204 </dl> |
|
205 <dl> |
160 <dt>Returns:</dt> |
206 <dt>Returns:</dt> |
161 <dd> |
207 <dd> |
162 header data |
208 header data |
163 </dd> |
209 </dd> |
164 </dl><a NAME="PasswordModel.removeRows" ID="PasswordModel.removeRows"></a> |
210 </dl> |
|
211 <a NAME="PasswordModel.removeRows" ID="PasswordModel.removeRows"></a> |
165 <h4>PasswordModel.removeRows</h4> |
212 <h4>PasswordModel.removeRows</h4> |
166 <b>removeRows</b>(<i>row, count, parent=None</i>) |
213 <b>removeRows</b>(<i>row, count, parent=None</i>) |
|
214 |
167 <p> |
215 <p> |
168 Public method to remove entries from the model. |
216 Public method to remove entries from the model. |
169 </p><dl> |
217 </p> |
|
218 <dl> |
|
219 |
170 <dt><i>row</i></dt> |
220 <dt><i>row</i></dt> |
171 <dd> |
221 <dd> |
172 start row (integer) |
222 start row (integer) |
173 </dd><dt><i>count</i></dt> |
223 </dd> |
|
224 <dt><i>count</i></dt> |
174 <dd> |
225 <dd> |
175 number of rows to remove (integer) |
226 number of rows to remove (integer) |
176 </dd><dt><i>parent</i></dt> |
227 </dd> |
|
228 <dt><i>parent</i></dt> |
177 <dd> |
229 <dd> |
178 parent index (QModelIndex) |
230 parent index (QModelIndex) |
179 </dd> |
231 </dd> |
180 </dl><dl> |
232 </dl> |
|
233 <dl> |
181 <dt>Returns:</dt> |
234 <dt>Returns:</dt> |
182 <dd> |
235 <dd> |
183 flag indicating success (boolean) |
236 flag indicating success (boolean) |
184 </dd> |
237 </dd> |
185 </dl><a NAME="PasswordModel.rowCount" ID="PasswordModel.rowCount"></a> |
238 </dl> |
|
239 <a NAME="PasswordModel.rowCount" ID="PasswordModel.rowCount"></a> |
186 <h4>PasswordModel.rowCount</h4> |
240 <h4>PasswordModel.rowCount</h4> |
187 <b>rowCount</b>(<i>parent=None</i>) |
241 <b>rowCount</b>(<i>parent=None</i>) |
|
242 |
188 <p> |
243 <p> |
189 Public method to get the number of rows of the model. |
244 Public method to get the number of rows of the model. |
190 </p><dl> |
245 </p> |
|
246 <dl> |
|
247 |
191 <dt><i>parent</i></dt> |
248 <dt><i>parent</i></dt> |
192 <dd> |
249 <dd> |
193 parent index (QModelIndex) |
250 parent index (QModelIndex) |
194 </dd> |
251 </dd> |
195 </dl><dl> |
252 </dl> |
|
253 <dl> |
196 <dt>Returns:</dt> |
254 <dt>Returns:</dt> |
197 <dd> |
255 <dd> |
198 number of rows (integer) |
256 number of rows (integer) |
199 </dd> |
257 </dd> |
200 </dl><a NAME="PasswordModel.setShowPasswords" ID="PasswordModel.setShowPasswords"></a> |
258 </dl> |
|
259 <a NAME="PasswordModel.setShowPasswords" ID="PasswordModel.setShowPasswords"></a> |
201 <h4>PasswordModel.setShowPasswords</h4> |
260 <h4>PasswordModel.setShowPasswords</h4> |
202 <b>setShowPasswords</b>(<i>on</i>) |
261 <b>setShowPasswords</b>(<i>on</i>) |
|
262 |
203 <p> |
263 <p> |
204 Public methods to show passwords. |
264 Public methods to show passwords. |
205 </p><dl> |
265 </p> |
|
266 <dl> |
|
267 |
206 <dt><i>on</i></dt> |
268 <dt><i>on</i></dt> |
207 <dd> |
269 <dd> |
208 flag indicating if passwords shall be shown (boolean) |
270 flag indicating if passwords shall be shown (boolean) |
209 </dd> |
271 </dd> |
210 </dl><a NAME="PasswordModel.showPasswords" ID="PasswordModel.showPasswords"></a> |
272 </dl> |
|
273 <a NAME="PasswordModel.showPasswords" ID="PasswordModel.showPasswords"></a> |
211 <h4>PasswordModel.showPasswords</h4> |
274 <h4>PasswordModel.showPasswords</h4> |
212 <b>showPasswords</b>(<i></i>) |
275 <b>showPasswords</b>(<i></i>) |
|
276 |
213 <p> |
277 <p> |
214 Public method to indicate, if passwords shall be shown. |
278 Public method to indicate, if passwords shall be shown. |
215 </p><dl> |
279 </p> |
|
280 <dl> |
216 <dt>Returns:</dt> |
281 <dt>Returns:</dt> |
217 <dd> |
282 <dd> |
218 flag indicating if passwords shall be shown (boolean) |
283 flag indicating if passwords shall be shown (boolean) |
219 </dd> |
284 </dd> |
220 </dl> |
285 </dl> |