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

changeset 3
0d9daebf5b8c
child 7
c679fb30c8f3
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric4.Helpviewer.Passwords.PasswordModel</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.Helpviewer.Passwords.PasswordModel</h1>
24 <p>
25 Module implementing a model for password management.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#PasswordModel">PasswordModel</a></td>
35 <td>Class implementing a model for password management.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="PasswordModel" ID="PasswordModel"></a>
44 <h2>PasswordModel</h2>
45 <p>
46 Class implementing a model for password management.
47 </p>
48 <h3>Derived from</h3>
49 QAbstractTableModel
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#PasswordModel.__init__">PasswordModel</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#PasswordModel.__passwordsChanged">__passwordsChanged</a></td>
61 <td>Private slot handling a change of the registered passwords.</td>
62 </tr><tr>
63 <td><a href="#PasswordModel.columnCount">columnCount</a></td>
64 <td>Public method to get the number of columns of the model.</td>
65 </tr><tr>
66 <td><a href="#PasswordModel.data">data</a></td>
67 <td>Public method to get data from the model.</td>
68 </tr><tr>
69 <td><a href="#PasswordModel.headerData">headerData</a></td>
70 <td>Public method to get the header data.</td>
71 </tr><tr>
72 <td><a href="#PasswordModel.removeRows">removeRows</a></td>
73 <td>Public method to remove entries from the model.</td>
74 </tr><tr>
75 <td><a href="#PasswordModel.rowCount">rowCount</a></td>
76 <td>Public method to get the number of rows of the model.</td>
77 </tr><tr>
78 <td><a href="#PasswordModel.setShowPasswords">setShowPasswords</a></td>
79 <td>Public methods to show passwords.</td>
80 </tr><tr>
81 <td><a href="#PasswordModel.showPasswords">showPasswords</a></td>
82 <td>Public method to indicate, if passwords shall be shown.</td>
83 </tr>
84 </table>
85 <a NAME="PasswordModel.__init__" ID="PasswordModel.__init__"></a>
86 <h4>PasswordModel (Constructor)</h4>
87 <b>PasswordModel</b>(<i>manager, parent = None</i>)
88 <p>
89 Constructor
90 </p><dl>
91 <dt><i>manager</i></dt>
92 <dd>
93 reference to the password manager (PasswordManager)
94 </dd><dt><i>parent</i></dt>
95 <dd>
96 reference to the parent object (QObject)
97 </dd>
98 </dl><a NAME="PasswordModel.__passwordsChanged" ID="PasswordModel.__passwordsChanged"></a>
99 <h4>PasswordModel.__passwordsChanged</h4>
100 <b>__passwordsChanged</b>(<i></i>)
101 <p>
102 Private slot handling a change of the registered passwords.
103 </p><a NAME="PasswordModel.columnCount" ID="PasswordModel.columnCount"></a>
104 <h4>PasswordModel.columnCount</h4>
105 <b>columnCount</b>(<i>parent = QModelIndex()</i>)
106 <p>
107 Public method to get the number of columns of the model.
108 </p><dl>
109 <dt><i>parent</i></dt>
110 <dd>
111 parent index (QModelIndex)
112 </dd>
113 </dl><dl>
114 <dt>Returns:</dt>
115 <dd>
116 number of columns (integer)
117 </dd>
118 </dl><a NAME="PasswordModel.data" ID="PasswordModel.data"></a>
119 <h4>PasswordModel.data</h4>
120 <b>data</b>(<i>index, role</i>)
121 <p>
122 Public method to get data from the model.
123 </p><dl>
124 <dt><i>index</i></dt>
125 <dd>
126 index to get data for (QModelIndex)
127 </dd><dt><i>role</i></dt>
128 <dd>
129 role of the data to retrieve (integer)
130 </dd>
131 </dl><dl>
132 <dt>Returns:</dt>
133 <dd>
134 requested data (QVariant)
135 </dd>
136 </dl><a NAME="PasswordModel.headerData" ID="PasswordModel.headerData"></a>
137 <h4>PasswordModel.headerData</h4>
138 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>)
139 <p>
140 Public method to get the header data.
141 </p><dl>
142 <dt><i>section</i></dt>
143 <dd>
144 section number (integer)
145 </dd><dt><i>orientation</i></dt>
146 <dd>
147 header orientation (Qt.Orientation)
148 </dd><dt><i>role</i></dt>
149 <dd>
150 data role (integer)
151 </dd>
152 </dl><dl>
153 <dt>Returns:</dt>
154 <dd>
155 header data (QVariant)
156 </dd>
157 </dl><a NAME="PasswordModel.removeRows" ID="PasswordModel.removeRows"></a>
158 <h4>PasswordModel.removeRows</h4>
159 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>)
160 <p>
161 Public method to remove entries from the model.
162 </p><dl>
163 <dt><i>row</i></dt>
164 <dd>
165 start row (integer)
166 </dd><dt><i>count</i></dt>
167 <dd>
168 number of rows to remove (integer)
169 </dd><dt><i>parent</i></dt>
170 <dd>
171 parent index (QModelIndex)
172 </dd>
173 </dl><dl>
174 <dt>Returns:</dt>
175 <dd>
176 flag indicating success (boolean)
177 </dd>
178 </dl><a NAME="PasswordModel.rowCount" ID="PasswordModel.rowCount"></a>
179 <h4>PasswordModel.rowCount</h4>
180 <b>rowCount</b>(<i>parent = QModelIndex()</i>)
181 <p>
182 Public method to get the number of rows of the model.
183 </p><dl>
184 <dt><i>parent</i></dt>
185 <dd>
186 parent index (QModelIndex)
187 </dd>
188 </dl><dl>
189 <dt>Returns:</dt>
190 <dd>
191 number of rows (integer)
192 </dd>
193 </dl><a NAME="PasswordModel.setShowPasswords" ID="PasswordModel.setShowPasswords"></a>
194 <h4>PasswordModel.setShowPasswords</h4>
195 <b>setShowPasswords</b>(<i>on</i>)
196 <p>
197 Public methods to show passwords.
198 </p><dl>
199 <dt><i>on</i></dt>
200 <dd>
201 flag indicating if passwords shall be shown (boolean)
202 </dd>
203 </dl><a NAME="PasswordModel.showPasswords" ID="PasswordModel.showPasswords"></a>
204 <h4>PasswordModel.showPasswords</h4>
205 <b>showPasswords</b>(<i></i>)
206 <p>
207 Public method to indicate, if passwords shall be shown.
208 </p><dl>
209 <dt>Returns:</dt>
210 <dd>
211 flag indicating if passwords shall be shown (boolean)
212 </dd>
213 </dl>
214 <div align="right"><a href="#top">Up</a></div>
215 <hr />
216 </body></html>

eric ide

mercurial