|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.ZoomManager.ZoomValuesModel</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> |
|
22 <a NAME="top" ID="top"></a> |
|
23 <h1>eric7.WebBrowser.ZoomManager.ZoomValuesModel</h1> |
|
24 |
|
25 <p> |
|
26 Module implementing a model for zoom values management. |
|
27 </p> |
|
28 <h3>Global Attributes</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <h3>Classes</h3> |
|
34 |
|
35 <table> |
|
36 |
|
37 <tr> |
|
38 <td><a href="#ZoomValuesModel">ZoomValuesModel</a></td> |
|
39 <td>Class implementing a model for zoom values management.</td> |
|
40 </tr> |
|
41 </table> |
|
42 <h3>Functions</h3> |
|
43 |
|
44 <table> |
|
45 <tr><td>None</td></tr> |
|
46 </table> |
|
47 <hr /> |
|
48 <hr /> |
|
49 <a NAME="ZoomValuesModel" ID="ZoomValuesModel"></a> |
|
50 <h2>ZoomValuesModel</h2> |
|
51 |
|
52 <p> |
|
53 Class implementing a model for zoom values management. |
|
54 </p> |
|
55 <h3>Derived from</h3> |
|
56 QAbstractTableModel |
|
57 <h3>Class Attributes</h3> |
|
58 |
|
59 <table> |
|
60 <tr><td>None</td></tr> |
|
61 </table> |
|
62 <h3>Class Methods</h3> |
|
63 |
|
64 <table> |
|
65 <tr><td>None</td></tr> |
|
66 </table> |
|
67 <h3>Methods</h3> |
|
68 |
|
69 <table> |
|
70 |
|
71 <tr> |
|
72 <td><a href="#ZoomValuesModel.__init__">ZoomValuesModel</a></td> |
|
73 <td>Constructor</td> |
|
74 </tr> |
|
75 <tr> |
|
76 <td><a href="#ZoomValuesModel.__zoomValuesChanged">__zoomValuesChanged</a></td> |
|
77 <td>Private slot handling a change of the registered zoom values.</td> |
|
78 </tr> |
|
79 <tr> |
|
80 <td><a href="#ZoomValuesModel.columnCount">columnCount</a></td> |
|
81 <td>Public method to get the number of columns of the model.</td> |
|
82 </tr> |
|
83 <tr> |
|
84 <td><a href="#ZoomValuesModel.data">data</a></td> |
|
85 <td>Public method to get data from the model.</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#ZoomValuesModel.headerData">headerData</a></td> |
|
89 <td>Public method to get the header data.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#ZoomValuesModel.removeRows">removeRows</a></td> |
|
93 <td>Public method to remove entries from the model.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#ZoomValuesModel.rowCount">rowCount</a></td> |
|
97 <td>Public method to get the number of rows of the model.</td> |
|
98 </tr> |
|
99 </table> |
|
100 <h3>Static Methods</h3> |
|
101 |
|
102 <table> |
|
103 <tr><td>None</td></tr> |
|
104 </table> |
|
105 |
|
106 <a NAME="ZoomValuesModel.__init__" ID="ZoomValuesModel.__init__"></a> |
|
107 <h4>ZoomValuesModel (Constructor)</h4> |
|
108 <b>ZoomValuesModel</b>(<i>manager, parent=None</i>) |
|
109 |
|
110 <p> |
|
111 Constructor |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>manager</i></dt> |
|
116 <dd> |
|
117 reference to the zoom values manager (ZoomManager) |
|
118 </dd> |
|
119 <dt><i>parent</i></dt> |
|
120 <dd> |
|
121 reference to the parent object (QObject) |
|
122 </dd> |
|
123 </dl> |
|
124 <a NAME="ZoomValuesModel.__zoomValuesChanged" ID="ZoomValuesModel.__zoomValuesChanged"></a> |
|
125 <h4>ZoomValuesModel.__zoomValuesChanged</h4> |
|
126 <b>__zoomValuesChanged</b>(<i></i>) |
|
127 |
|
128 <p> |
|
129 Private slot handling a change of the registered zoom values. |
|
130 </p> |
|
131 <a NAME="ZoomValuesModel.columnCount" ID="ZoomValuesModel.columnCount"></a> |
|
132 <h4>ZoomValuesModel.columnCount</h4> |
|
133 <b>columnCount</b>(<i>parent=None</i>) |
|
134 |
|
135 <p> |
|
136 Public method to get the number of columns of the model. |
|
137 </p> |
|
138 <dl> |
|
139 |
|
140 <dt><i>parent</i></dt> |
|
141 <dd> |
|
142 parent index (QModelIndex) (Unused) |
|
143 </dd> |
|
144 </dl> |
|
145 <dl> |
|
146 <dt>Return:</dt> |
|
147 <dd> |
|
148 number of columns (integer) |
|
149 </dd> |
|
150 </dl> |
|
151 <a NAME="ZoomValuesModel.data" ID="ZoomValuesModel.data"></a> |
|
152 <h4>ZoomValuesModel.data</h4> |
|
153 <b>data</b>(<i>index, role</i>) |
|
154 |
|
155 <p> |
|
156 Public method to get data from the model. |
|
157 </p> |
|
158 <dl> |
|
159 |
|
160 <dt><i>index</i></dt> |
|
161 <dd> |
|
162 index to get data for (QModelIndex) |
|
163 </dd> |
|
164 <dt><i>role</i></dt> |
|
165 <dd> |
|
166 role of the data to retrieve (integer) |
|
167 </dd> |
|
168 </dl> |
|
169 <dl> |
|
170 <dt>Return:</dt> |
|
171 <dd> |
|
172 requested data |
|
173 </dd> |
|
174 </dl> |
|
175 <a NAME="ZoomValuesModel.headerData" ID="ZoomValuesModel.headerData"></a> |
|
176 <h4>ZoomValuesModel.headerData</h4> |
|
177 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) |
|
178 |
|
179 <p> |
|
180 Public method to get the header data. |
|
181 </p> |
|
182 <dl> |
|
183 |
|
184 <dt><i>section</i></dt> |
|
185 <dd> |
|
186 section number (integer) |
|
187 </dd> |
|
188 <dt><i>orientation</i></dt> |
|
189 <dd> |
|
190 header orientation (Qt.Orientation) |
|
191 </dd> |
|
192 <dt><i>role</i></dt> |
|
193 <dd> |
|
194 data role (Qt.ItemDataRole) |
|
195 </dd> |
|
196 </dl> |
|
197 <dl> |
|
198 <dt>Return:</dt> |
|
199 <dd> |
|
200 header data |
|
201 </dd> |
|
202 </dl> |
|
203 <a NAME="ZoomValuesModel.removeRows" ID="ZoomValuesModel.removeRows"></a> |
|
204 <h4>ZoomValuesModel.removeRows</h4> |
|
205 <b>removeRows</b>(<i>row, count, parent=None</i>) |
|
206 |
|
207 <p> |
|
208 Public method to remove entries from the model. |
|
209 </p> |
|
210 <dl> |
|
211 |
|
212 <dt><i>row</i></dt> |
|
213 <dd> |
|
214 start row (integer) |
|
215 </dd> |
|
216 <dt><i>count</i></dt> |
|
217 <dd> |
|
218 number of rows to remove (integer) |
|
219 </dd> |
|
220 <dt><i>parent</i></dt> |
|
221 <dd> |
|
222 parent index (QModelIndex) |
|
223 </dd> |
|
224 </dl> |
|
225 <dl> |
|
226 <dt>Return:</dt> |
|
227 <dd> |
|
228 flag indicating success (boolean) |
|
229 </dd> |
|
230 </dl> |
|
231 <a NAME="ZoomValuesModel.rowCount" ID="ZoomValuesModel.rowCount"></a> |
|
232 <h4>ZoomValuesModel.rowCount</h4> |
|
233 <b>rowCount</b>(<i>parent=None</i>) |
|
234 |
|
235 <p> |
|
236 Public method to get the number of rows of the model. |
|
237 </p> |
|
238 <dl> |
|
239 |
|
240 <dt><i>parent</i></dt> |
|
241 <dd> |
|
242 parent index (QModelIndex) |
|
243 </dd> |
|
244 </dl> |
|
245 <dl> |
|
246 <dt>Return:</dt> |
|
247 <dd> |
|
248 number of rows (integer) |
|
249 </dd> |
|
250 </dl> |
|
251 <div align="right"><a href="#top">Up</a></div> |
|
252 <hr /> |
|
253 </body></html> |