eric6/Documentation/Source/eric6.Helpviewer.Passwords.PasswordModel.html

changeset 6942
2602857055c5
parent 5656
9c21b2746218
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Helpviewer.Passwords.PasswordModel</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.Helpviewer.Passwords.PasswordModel</h1>
23 <p>
24 Module implementing a model for password management.
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="#PasswordModel">PasswordModel</a></td>
34 <td>Class implementing a model for password management.</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="PasswordModel" ID="PasswordModel"></a>
43 <h2>PasswordModel</h2>
44 <p>
45 Class implementing a model for password management.
46 </p>
47 <h3>Derived from</h3>
48 QAbstractTableModel
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#PasswordModel.__init__">PasswordModel</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#PasswordModel.__passwordsChanged">__passwordsChanged</a></td>
64 <td>Private slot handling a change of the registered passwords.</td>
65 </tr><tr>
66 <td><a href="#PasswordModel.columnCount">columnCount</a></td>
67 <td>Public method to get the number of columns of the model.</td>
68 </tr><tr>
69 <td><a href="#PasswordModel.data">data</a></td>
70 <td>Public method to get data from the model.</td>
71 </tr><tr>
72 <td><a href="#PasswordModel.headerData">headerData</a></td>
73 <td>Public method to get the header data.</td>
74 </tr><tr>
75 <td><a href="#PasswordModel.removeRows">removeRows</a></td>
76 <td>Public method to remove entries from the model.</td>
77 </tr><tr>
78 <td><a href="#PasswordModel.rowCount">rowCount</a></td>
79 <td>Public method to get the number of rows of the model.</td>
80 </tr><tr>
81 <td><a href="#PasswordModel.setShowPasswords">setShowPasswords</a></td>
82 <td>Public methods to show passwords.</td>
83 </tr><tr>
84 <td><a href="#PasswordModel.showPasswords">showPasswords</a></td>
85 <td>Public method to indicate, if passwords shall be shown.</td>
86 </tr>
87 </table>
88 <h3>Static Methods</h3>
89 <table>
90 <tr><td>None</td></tr>
91 </table>
92 <a NAME="PasswordModel.__init__" ID="PasswordModel.__init__"></a>
93 <h4>PasswordModel (Constructor)</h4>
94 <b>PasswordModel</b>(<i>manager, parent=None</i>)
95 <p>
96 Constructor
97 </p><dl>
98 <dt><i>manager</i></dt>
99 <dd>
100 reference to the password manager (PasswordManager)
101 </dd><dt><i>parent</i></dt>
102 <dd>
103 reference to the parent object (QObject)
104 </dd>
105 </dl><a NAME="PasswordModel.__passwordsChanged" ID="PasswordModel.__passwordsChanged"></a>
106 <h4>PasswordModel.__passwordsChanged</h4>
107 <b>__passwordsChanged</b>(<i></i>)
108 <p>
109 Private slot handling a change of the registered passwords.
110 </p><a NAME="PasswordModel.columnCount" ID="PasswordModel.columnCount"></a>
111 <h4>PasswordModel.columnCount</h4>
112 <b>columnCount</b>(<i>parent=None</i>)
113 <p>
114 Public method to get the number of columns of the model.
115 </p><dl>
116 <dt><i>parent</i></dt>
117 <dd>
118 parent index (QModelIndex) (Unused)
119 </dd>
120 </dl><dl>
121 <dt>Returns:</dt>
122 <dd>
123 number of columns (integer)
124 </dd>
125 </dl><a NAME="PasswordModel.data" ID="PasswordModel.data"></a>
126 <h4>PasswordModel.data</h4>
127 <b>data</b>(<i>index, role</i>)
128 <p>
129 Public method to get data from the model.
130 </p><dl>
131 <dt><i>index</i></dt>
132 <dd>
133 index to get data for (QModelIndex)
134 </dd><dt><i>role</i></dt>
135 <dd>
136 role of the data to retrieve (integer)
137 </dd>
138 </dl><dl>
139 <dt>Returns:</dt>
140 <dd>
141 requested data
142 </dd>
143 </dl><a NAME="PasswordModel.headerData" ID="PasswordModel.headerData"></a>
144 <h4>PasswordModel.headerData</h4>
145 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>)
146 <p>
147 Public method to get the header data.
148 </p><dl>
149 <dt><i>section</i></dt>
150 <dd>
151 section number (integer)
152 </dd><dt><i>orientation</i></dt>
153 <dd>
154 header orientation (Qt.Orientation)
155 </dd><dt><i>role</i></dt>
156 <dd>
157 data role (integer)
158 </dd>
159 </dl><dl>
160 <dt>Returns:</dt>
161 <dd>
162 header data
163 </dd>
164 </dl><a NAME="PasswordModel.removeRows" ID="PasswordModel.removeRows"></a>
165 <h4>PasswordModel.removeRows</h4>
166 <b>removeRows</b>(<i>row, count, parent=None</i>)
167 <p>
168 Public method to remove entries from the model.
169 </p><dl>
170 <dt><i>row</i></dt>
171 <dd>
172 start row (integer)
173 </dd><dt><i>count</i></dt>
174 <dd>
175 number of rows to remove (integer)
176 </dd><dt><i>parent</i></dt>
177 <dd>
178 parent index (QModelIndex)
179 </dd>
180 </dl><dl>
181 <dt>Returns:</dt>
182 <dd>
183 flag indicating success (boolean)
184 </dd>
185 </dl><a NAME="PasswordModel.rowCount" ID="PasswordModel.rowCount"></a>
186 <h4>PasswordModel.rowCount</h4>
187 <b>rowCount</b>(<i>parent=None</i>)
188 <p>
189 Public method to get the number of rows of the model.
190 </p><dl>
191 <dt><i>parent</i></dt>
192 <dd>
193 parent index (QModelIndex)
194 </dd>
195 </dl><dl>
196 <dt>Returns:</dt>
197 <dd>
198 number of rows (integer)
199 </dd>
200 </dl><a NAME="PasswordModel.setShowPasswords" ID="PasswordModel.setShowPasswords"></a>
201 <h4>PasswordModel.setShowPasswords</h4>
202 <b>setShowPasswords</b>(<i>on</i>)
203 <p>
204 Public methods to show passwords.
205 </p><dl>
206 <dt><i>on</i></dt>
207 <dd>
208 flag indicating if passwords shall be shown (boolean)
209 </dd>
210 </dl><a NAME="PasswordModel.showPasswords" ID="PasswordModel.showPasswords"></a>
211 <h4>PasswordModel.showPasswords</h4>
212 <b>showPasswords</b>(<i></i>)
213 <p>
214 Public method to indicate, if passwords shall be shown.
215 </p><dl>
216 <dt>Returns:</dt>
217 <dd>
218 flag indicating if passwords shall be shown (boolean)
219 </dd>
220 </dl>
221 <div align="right"><a href="#top">Up</a></div>
222 <hr />
223 </body></html>

eric ide

mercurial