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.History.HistoryTreeModel</h1> |
23 <h1>eric6.WebBrowser.History.HistoryTreeModel</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the history tree model. |
26 Module implementing the history tree model. |
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="#HistoryTreeModel">HistoryTreeModel</a></td> |
38 <td><a href="#HistoryTreeModel">HistoryTreeModel</a></td> |
34 <td>Class implementing the history tree model.</td> |
39 <td>Class implementing the history tree model.</td> |
35 </tr> |
40 </tr> |
36 </table> |
41 </table> |
37 <h3>Functions</h3> |
42 <h3>Functions</h3> |
|
43 |
38 <table> |
44 <table> |
39 <tr><td>None</td></tr> |
45 <tr><td>None</td></tr> |
40 </table> |
46 </table> |
41 <hr /><hr /> |
47 <hr /> |
|
48 <hr /> |
42 <a NAME="HistoryTreeModel" ID="HistoryTreeModel"></a> |
49 <a NAME="HistoryTreeModel" ID="HistoryTreeModel"></a> |
43 <h2>HistoryTreeModel</h2> |
50 <h2>HistoryTreeModel</h2> |
|
51 |
44 <p> |
52 <p> |
45 Class implementing the history tree model. |
53 Class implementing the history tree model. |
46 </p> |
54 </p> |
47 <h3>Derived from</h3> |
55 <h3>Derived from</h3> |
48 QAbstractProxyModel |
56 QAbstractProxyModel |
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="#HistoryTreeModel.__init__">HistoryTreeModel</a></td> |
72 <td><a href="#HistoryTreeModel.__init__">HistoryTreeModel</a></td> |
61 <td>Constructor</td> |
73 <td>Constructor</td> |
62 </tr><tr> |
74 </tr> |
|
75 <tr> |
63 <td><a href="#HistoryTreeModel.__sourceDateRow">__sourceDateRow</a></td> |
76 <td><a href="#HistoryTreeModel.__sourceDateRow">__sourceDateRow</a></td> |
64 <td>Private method to translate the top level date row into the offset where that date starts.</td> |
77 <td>Private method to translate the top level date row into the offset where that date starts.</td> |
65 </tr><tr> |
78 </tr> |
|
79 <tr> |
66 <td><a href="#HistoryTreeModel.__sourceReset">__sourceReset</a></td> |
80 <td><a href="#HistoryTreeModel.__sourceReset">__sourceReset</a></td> |
67 <td>Private slot to handle a reset of the source model.</td> |
81 <td>Private slot to handle a reset of the source model.</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#HistoryTreeModel.__sourceRowsInserted">__sourceRowsInserted</a></td> |
84 <td><a href="#HistoryTreeModel.__sourceRowsInserted">__sourceRowsInserted</a></td> |
70 <td>Private slot to handle the insertion of data in the source model.</td> |
85 <td>Private slot to handle the insertion of data in the source model.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#HistoryTreeModel.__sourceRowsRemoved">__sourceRowsRemoved</a></td> |
88 <td><a href="#HistoryTreeModel.__sourceRowsRemoved">__sourceRowsRemoved</a></td> |
73 <td>Private slot to handle the removal of data in the source model.</td> |
89 <td>Private slot to handle the removal of data in the source model.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#HistoryTreeModel.columnCount">columnCount</a></td> |
92 <td><a href="#HistoryTreeModel.columnCount">columnCount</a></td> |
76 <td>Public method to get the number of columns.</td> |
93 <td>Public method to get the number of columns.</td> |
77 </tr><tr> |
94 </tr> |
|
95 <tr> |
78 <td><a href="#HistoryTreeModel.data">data</a></td> |
96 <td><a href="#HistoryTreeModel.data">data</a></td> |
79 <td>Public method to get data from the model.</td> |
97 <td>Public method to get data from the model.</td> |
80 </tr><tr> |
98 </tr> |
|
99 <tr> |
81 <td><a href="#HistoryTreeModel.flags">flags</a></td> |
100 <td><a href="#HistoryTreeModel.flags">flags</a></td> |
82 <td>Public method to get the item flags.</td> |
101 <td>Public method to get the item flags.</td> |
83 </tr><tr> |
102 </tr> |
|
103 <tr> |
84 <td><a href="#HistoryTreeModel.hasChildren">hasChildren</a></td> |
104 <td><a href="#HistoryTreeModel.hasChildren">hasChildren</a></td> |
85 <td>Public method to check, if an entry has some children.</td> |
105 <td>Public method to check, if an entry has some children.</td> |
86 </tr><tr> |
106 </tr> |
|
107 <tr> |
87 <td><a href="#HistoryTreeModel.headerData">headerData</a></td> |
108 <td><a href="#HistoryTreeModel.headerData">headerData</a></td> |
88 <td>Public method to get the header data.</td> |
109 <td>Public method to get the header data.</td> |
89 </tr><tr> |
110 </tr> |
|
111 <tr> |
90 <td><a href="#HistoryTreeModel.index">index</a></td> |
112 <td><a href="#HistoryTreeModel.index">index</a></td> |
91 <td>Public method to create an index.</td> |
113 <td>Public method to create an index.</td> |
92 </tr><tr> |
114 </tr> |
|
115 <tr> |
93 <td><a href="#HistoryTreeModel.mapFromSource">mapFromSource</a></td> |
116 <td><a href="#HistoryTreeModel.mapFromSource">mapFromSource</a></td> |
94 <td>Public method to map an index to the proxy model index.</td> |
117 <td>Public method to map an index to the proxy model index.</td> |
95 </tr><tr> |
118 </tr> |
|
119 <tr> |
96 <td><a href="#HistoryTreeModel.mapToSource">mapToSource</a></td> |
120 <td><a href="#HistoryTreeModel.mapToSource">mapToSource</a></td> |
97 <td>Public method to map an index to the source model index.</td> |
121 <td>Public method to map an index to the source model index.</td> |
98 </tr><tr> |
122 </tr> |
|
123 <tr> |
99 <td><a href="#HistoryTreeModel.parent">parent</a></td> |
124 <td><a href="#HistoryTreeModel.parent">parent</a></td> |
100 <td>Public method to get the parent index.</td> |
125 <td>Public method to get the parent index.</td> |
101 </tr><tr> |
126 </tr> |
|
127 <tr> |
102 <td><a href="#HistoryTreeModel.removeRows">removeRows</a></td> |
128 <td><a href="#HistoryTreeModel.removeRows">removeRows</a></td> |
103 <td>Public method to remove entries from the model.</td> |
129 <td>Public method to remove entries from the model.</td> |
104 </tr><tr> |
130 </tr> |
|
131 <tr> |
105 <td><a href="#HistoryTreeModel.rowCount">rowCount</a></td> |
132 <td><a href="#HistoryTreeModel.rowCount">rowCount</a></td> |
106 <td>Public method to determine the number of rows.</td> |
133 <td>Public method to determine the number of rows.</td> |
107 </tr><tr> |
134 </tr> |
|
135 <tr> |
108 <td><a href="#HistoryTreeModel.setSourceModel">setSourceModel</a></td> |
136 <td><a href="#HistoryTreeModel.setSourceModel">setSourceModel</a></td> |
109 <td>Public method to set the source model.</td> |
137 <td>Public method to set the source model.</td> |
110 </tr> |
138 </tr> |
111 </table> |
139 </table> |
112 <h3>Static Methods</h3> |
140 <h3>Static Methods</h3> |
|
141 |
113 <table> |
142 <table> |
114 <tr><td>None</td></tr> |
143 <tr><td>None</td></tr> |
115 </table> |
144 </table> |
|
145 |
116 <a NAME="HistoryTreeModel.__init__" ID="HistoryTreeModel.__init__"></a> |
146 <a NAME="HistoryTreeModel.__init__" ID="HistoryTreeModel.__init__"></a> |
117 <h4>HistoryTreeModel (Constructor)</h4> |
147 <h4>HistoryTreeModel (Constructor)</h4> |
118 <b>HistoryTreeModel</b>(<i>sourceModel, parent=None</i>) |
148 <b>HistoryTreeModel</b>(<i>sourceModel, parent=None</i>) |
|
149 |
119 <p> |
150 <p> |
120 Constructor |
151 Constructor |
121 </p><dl> |
152 </p> |
|
153 <dl> |
|
154 |
122 <dt><i>sourceModel</i></dt> |
155 <dt><i>sourceModel</i></dt> |
123 <dd> |
156 <dd> |
124 reference to the source model (QAbstractItemModel) |
157 reference to the source model (QAbstractItemModel) |
125 </dd><dt><i>parent</i></dt> |
158 </dd> |
|
159 <dt><i>parent</i></dt> |
126 <dd> |
160 <dd> |
127 reference to the parent object (QObject) |
161 reference to the parent object (QObject) |
128 </dd> |
162 </dd> |
129 </dl><a NAME="HistoryTreeModel.__sourceDateRow" ID="HistoryTreeModel.__sourceDateRow"></a> |
163 </dl> |
|
164 <a NAME="HistoryTreeModel.__sourceDateRow" ID="HistoryTreeModel.__sourceDateRow"></a> |
130 <h4>HistoryTreeModel.__sourceDateRow</h4> |
165 <h4>HistoryTreeModel.__sourceDateRow</h4> |
131 <b>__sourceDateRow</b>(<i>row</i>) |
166 <b>__sourceDateRow</b>(<i>row</i>) |
|
167 |
132 <p> |
168 <p> |
133 Private method to translate the top level date row into the offset |
169 Private method to translate the top level date row into the offset |
134 where that date starts. |
170 where that date starts. |
135 </p><dl> |
171 </p> |
|
172 <dl> |
|
173 |
136 <dt><i>row</i></dt> |
174 <dt><i>row</i></dt> |
137 <dd> |
175 <dd> |
138 row number of the date (integer) |
176 row number of the date (integer) |
139 </dd> |
177 </dd> |
140 </dl><dl> |
178 </dl> |
|
179 <dl> |
141 <dt>Returns:</dt> |
180 <dt>Returns:</dt> |
142 <dd> |
181 <dd> |
143 offset where that date starts (integer) |
182 offset where that date starts (integer) |
144 </dd> |
183 </dd> |
145 </dl><a NAME="HistoryTreeModel.__sourceReset" ID="HistoryTreeModel.__sourceReset"></a> |
184 </dl> |
|
185 <a NAME="HistoryTreeModel.__sourceReset" ID="HistoryTreeModel.__sourceReset"></a> |
146 <h4>HistoryTreeModel.__sourceReset</h4> |
186 <h4>HistoryTreeModel.__sourceReset</h4> |
147 <b>__sourceReset</b>(<i></i>) |
187 <b>__sourceReset</b>(<i></i>) |
|
188 |
148 <p> |
189 <p> |
149 Private slot to handle a reset of the source model. |
190 Private slot to handle a reset of the source model. |
150 </p><a NAME="HistoryTreeModel.__sourceRowsInserted" ID="HistoryTreeModel.__sourceRowsInserted"></a> |
191 </p> |
|
192 <a NAME="HistoryTreeModel.__sourceRowsInserted" ID="HistoryTreeModel.__sourceRowsInserted"></a> |
151 <h4>HistoryTreeModel.__sourceRowsInserted</h4> |
193 <h4>HistoryTreeModel.__sourceRowsInserted</h4> |
152 <b>__sourceRowsInserted</b>(<i>parent, start, end</i>) |
194 <b>__sourceRowsInserted</b>(<i>parent, start, end</i>) |
|
195 |
153 <p> |
196 <p> |
154 Private slot to handle the insertion of data in the source model. |
197 Private slot to handle the insertion of data in the source model. |
155 </p><dl> |
198 </p> |
|
199 <dl> |
|
200 |
156 <dt><i>parent</i></dt> |
201 <dt><i>parent</i></dt> |
157 <dd> |
202 <dd> |
158 reference to the parent index (QModelIndex) |
203 reference to the parent index (QModelIndex) |
159 </dd><dt><i>start</i></dt> |
204 </dd> |
|
205 <dt><i>start</i></dt> |
160 <dd> |
206 <dd> |
161 start row (integer) |
207 start row (integer) |
162 </dd><dt><i>end</i></dt> |
208 </dd> |
|
209 <dt><i>end</i></dt> |
163 <dd> |
210 <dd> |
164 end row (integer) |
211 end row (integer) |
165 </dd> |
212 </dd> |
166 </dl><a NAME="HistoryTreeModel.__sourceRowsRemoved" ID="HistoryTreeModel.__sourceRowsRemoved"></a> |
213 </dl> |
|
214 <a NAME="HistoryTreeModel.__sourceRowsRemoved" ID="HistoryTreeModel.__sourceRowsRemoved"></a> |
167 <h4>HistoryTreeModel.__sourceRowsRemoved</h4> |
215 <h4>HistoryTreeModel.__sourceRowsRemoved</h4> |
168 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>) |
216 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>) |
|
217 |
169 <p> |
218 <p> |
170 Private slot to handle the removal of data in the source model. |
219 Private slot to handle the removal of data in the source model. |
171 </p><dl> |
220 </p> |
|
221 <dl> |
|
222 |
172 <dt><i>parent</i></dt> |
223 <dt><i>parent</i></dt> |
173 <dd> |
224 <dd> |
174 reference to the parent index (QModelIndex) |
225 reference to the parent index (QModelIndex) |
175 </dd><dt><i>start</i></dt> |
226 </dd> |
|
227 <dt><i>start</i></dt> |
176 <dd> |
228 <dd> |
177 start row (integer) |
229 start row (integer) |
178 </dd><dt><i>end</i></dt> |
230 </dd> |
|
231 <dt><i>end</i></dt> |
179 <dd> |
232 <dd> |
180 end row (integer) |
233 end row (integer) |
181 </dd> |
234 </dd> |
182 </dl><a NAME="HistoryTreeModel.columnCount" ID="HistoryTreeModel.columnCount"></a> |
235 </dl> |
|
236 <a NAME="HistoryTreeModel.columnCount" ID="HistoryTreeModel.columnCount"></a> |
183 <h4>HistoryTreeModel.columnCount</h4> |
237 <h4>HistoryTreeModel.columnCount</h4> |
184 <b>columnCount</b>(<i>parent=None</i>) |
238 <b>columnCount</b>(<i>parent=None</i>) |
|
239 |
185 <p> |
240 <p> |
186 Public method to get the number of columns. |
241 Public method to get the number of columns. |
187 </p><dl> |
242 </p> |
|
243 <dl> |
|
244 |
188 <dt><i>parent</i></dt> |
245 <dt><i>parent</i></dt> |
189 <dd> |
246 <dd> |
190 index of parent (QModelIndex) |
247 index of parent (QModelIndex) |
191 </dd> |
248 </dd> |
192 </dl><dl> |
249 </dl> |
|
250 <dl> |
193 <dt>Returns:</dt> |
251 <dt>Returns:</dt> |
194 <dd> |
252 <dd> |
195 number of columns (integer) |
253 number of columns (integer) |
196 </dd> |
254 </dd> |
197 </dl><a NAME="HistoryTreeModel.data" ID="HistoryTreeModel.data"></a> |
255 </dl> |
|
256 <a NAME="HistoryTreeModel.data" ID="HistoryTreeModel.data"></a> |
198 <h4>HistoryTreeModel.data</h4> |
257 <h4>HistoryTreeModel.data</h4> |
199 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
258 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
|
259 |
200 <p> |
260 <p> |
201 Public method to get data from the model. |
261 Public method to get data from the model. |
202 </p><dl> |
262 </p> |
|
263 <dl> |
|
264 |
203 <dt><i>index</i></dt> |
265 <dt><i>index</i></dt> |
204 <dd> |
266 <dd> |
205 index of history entry to get data for (QModelIndex) |
267 index of history entry to get data for (QModelIndex) |
206 </dd><dt><i>role</i></dt> |
268 </dd> |
|
269 <dt><i>role</i></dt> |
207 <dd> |
270 <dd> |
208 data role (integer) |
271 data role (integer) |
209 </dd> |
272 </dd> |
210 </dl><dl> |
273 </dl> |
|
274 <dl> |
211 <dt>Returns:</dt> |
275 <dt>Returns:</dt> |
212 <dd> |
276 <dd> |
213 history entry data |
277 history entry data |
214 </dd> |
278 </dd> |
215 </dl><a NAME="HistoryTreeModel.flags" ID="HistoryTreeModel.flags"></a> |
279 </dl> |
|
280 <a NAME="HistoryTreeModel.flags" ID="HistoryTreeModel.flags"></a> |
216 <h4>HistoryTreeModel.flags</h4> |
281 <h4>HistoryTreeModel.flags</h4> |
217 <b>flags</b>(<i>index</i>) |
282 <b>flags</b>(<i>index</i>) |
|
283 |
218 <p> |
284 <p> |
219 Public method to get the item flags. |
285 Public method to get the item flags. |
220 </p><dl> |
286 </p> |
|
287 <dl> |
|
288 |
221 <dt><i>index</i></dt> |
289 <dt><i>index</i></dt> |
222 <dd> |
290 <dd> |
223 index of the item (QModelIndex) |
291 index of the item (QModelIndex) |
224 </dd> |
292 </dd> |
225 </dl><dl> |
293 </dl> |
|
294 <dl> |
226 <dt>Returns:</dt> |
295 <dt>Returns:</dt> |
227 <dd> |
296 <dd> |
228 flags (Qt.ItemFlags) |
297 flags (Qt.ItemFlags) |
229 </dd> |
298 </dd> |
230 </dl><a NAME="HistoryTreeModel.hasChildren" ID="HistoryTreeModel.hasChildren"></a> |
299 </dl> |
|
300 <a NAME="HistoryTreeModel.hasChildren" ID="HistoryTreeModel.hasChildren"></a> |
231 <h4>HistoryTreeModel.hasChildren</h4> |
301 <h4>HistoryTreeModel.hasChildren</h4> |
232 <b>hasChildren</b>(<i>parent=None</i>) |
302 <b>hasChildren</b>(<i>parent=None</i>) |
|
303 |
233 <p> |
304 <p> |
234 Public method to check, if an entry has some children. |
305 Public method to check, if an entry has some children. |
235 </p><dl> |
306 </p> |
|
307 <dl> |
|
308 |
236 <dt><i>parent</i></dt> |
309 <dt><i>parent</i></dt> |
237 <dd> |
310 <dd> |
238 index of the entry to check (QModelIndex) |
311 index of the entry to check (QModelIndex) |
239 </dd> |
312 </dd> |
240 </dl><dl> |
313 </dl> |
|
314 <dl> |
241 <dt>Returns:</dt> |
315 <dt>Returns:</dt> |
242 <dd> |
316 <dd> |
243 flag indicating the presence of children (boolean) |
317 flag indicating the presence of children (boolean) |
244 </dd> |
318 </dd> |
245 </dl><a NAME="HistoryTreeModel.headerData" ID="HistoryTreeModel.headerData"></a> |
319 </dl> |
|
320 <a NAME="HistoryTreeModel.headerData" ID="HistoryTreeModel.headerData"></a> |
246 <h4>HistoryTreeModel.headerData</h4> |
321 <h4>HistoryTreeModel.headerData</h4> |
247 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
322 <b>headerData</b>(<i>section, orientation, role=Qt.DisplayRole</i>) |
|
323 |
248 <p> |
324 <p> |
249 Public method to get the header data. |
325 Public method to get the header data. |
250 </p><dl> |
326 </p> |
|
327 <dl> |
|
328 |
251 <dt><i>section</i></dt> |
329 <dt><i>section</i></dt> |
252 <dd> |
330 <dd> |
253 section number (integer) |
331 section number (integer) |
254 </dd><dt><i>orientation</i></dt> |
332 </dd> |
|
333 <dt><i>orientation</i></dt> |
255 <dd> |
334 <dd> |
256 header orientation (Qt.Orientation) |
335 header orientation (Qt.Orientation) |
257 </dd><dt><i>role</i></dt> |
336 </dd> |
|
337 <dt><i>role</i></dt> |
258 <dd> |
338 <dd> |
259 data role (integer) |
339 data role (integer) |
260 </dd> |
340 </dd> |
261 </dl><dl> |
341 </dl> |
|
342 <dl> |
262 <dt>Returns:</dt> |
343 <dt>Returns:</dt> |
263 <dd> |
344 <dd> |
264 header data |
345 header data |
265 </dd> |
346 </dd> |
266 </dl><a NAME="HistoryTreeModel.index" ID="HistoryTreeModel.index"></a> |
347 </dl> |
|
348 <a NAME="HistoryTreeModel.index" ID="HistoryTreeModel.index"></a> |
267 <h4>HistoryTreeModel.index</h4> |
349 <h4>HistoryTreeModel.index</h4> |
268 <b>index</b>(<i>row, column, parent=None</i>) |
350 <b>index</b>(<i>row, column, parent=None</i>) |
|
351 |
269 <p> |
352 <p> |
270 Public method to create an index. |
353 Public method to create an index. |
271 </p><dl> |
354 </p> |
|
355 <dl> |
|
356 |
272 <dt><i>row</i></dt> |
357 <dt><i>row</i></dt> |
273 <dd> |
358 <dd> |
274 row number for the index (integer) |
359 row number for the index (integer) |
275 </dd><dt><i>column</i></dt> |
360 </dd> |
|
361 <dt><i>column</i></dt> |
276 <dd> |
362 <dd> |
277 column number for the index (integer) |
363 column number for the index (integer) |
278 </dd><dt><i>parent</i></dt> |
364 </dd> |
|
365 <dt><i>parent</i></dt> |
279 <dd> |
366 <dd> |
280 index of the parent item (QModelIndex) |
367 index of the parent item (QModelIndex) |
281 </dd> |
368 </dd> |
282 </dl><dl> |
369 </dl> |
|
370 <dl> |
283 <dt>Returns:</dt> |
371 <dt>Returns:</dt> |
284 <dd> |
372 <dd> |
285 requested index (QModelIndex) |
373 requested index (QModelIndex) |
286 </dd> |
374 </dd> |
287 </dl><a NAME="HistoryTreeModel.mapFromSource" ID="HistoryTreeModel.mapFromSource"></a> |
375 </dl> |
|
376 <a NAME="HistoryTreeModel.mapFromSource" ID="HistoryTreeModel.mapFromSource"></a> |
288 <h4>HistoryTreeModel.mapFromSource</h4> |
377 <h4>HistoryTreeModel.mapFromSource</h4> |
289 <b>mapFromSource</b>(<i>sourceIndex</i>) |
378 <b>mapFromSource</b>(<i>sourceIndex</i>) |
|
379 |
290 <p> |
380 <p> |
291 Public method to map an index to the proxy model index. |
381 Public method to map an index to the proxy model index. |
292 </p><dl> |
382 </p> |
|
383 <dl> |
|
384 |
293 <dt><i>sourceIndex</i></dt> |
385 <dt><i>sourceIndex</i></dt> |
294 <dd> |
386 <dd> |
295 reference to a source model index (QModelIndex) |
387 reference to a source model index (QModelIndex) |
296 </dd> |
388 </dd> |
297 </dl><dl> |
389 </dl> |
|
390 <dl> |
298 <dt>Returns:</dt> |
391 <dt>Returns:</dt> |
299 <dd> |
392 <dd> |
300 proxy model index (QModelIndex) |
393 proxy model index (QModelIndex) |
301 </dd> |
394 </dd> |
302 </dl><a NAME="HistoryTreeModel.mapToSource" ID="HistoryTreeModel.mapToSource"></a> |
395 </dl> |
|
396 <a NAME="HistoryTreeModel.mapToSource" ID="HistoryTreeModel.mapToSource"></a> |
303 <h4>HistoryTreeModel.mapToSource</h4> |
397 <h4>HistoryTreeModel.mapToSource</h4> |
304 <b>mapToSource</b>(<i>proxyIndex</i>) |
398 <b>mapToSource</b>(<i>proxyIndex</i>) |
|
399 |
305 <p> |
400 <p> |
306 Public method to map an index to the source model index. |
401 Public method to map an index to the source model index. |
307 </p><dl> |
402 </p> |
|
403 <dl> |
|
404 |
308 <dt><i>proxyIndex</i></dt> |
405 <dt><i>proxyIndex</i></dt> |
309 <dd> |
406 <dd> |
310 reference to a proxy model index (QModelIndex) |
407 reference to a proxy model index (QModelIndex) |
311 </dd> |
408 </dd> |
312 </dl><dl> |
409 </dl> |
|
410 <dl> |
313 <dt>Returns:</dt> |
411 <dt>Returns:</dt> |
314 <dd> |
412 <dd> |
315 source model index (QModelIndex) |
413 source model index (QModelIndex) |
316 </dd> |
414 </dd> |
317 </dl><a NAME="HistoryTreeModel.parent" ID="HistoryTreeModel.parent"></a> |
415 </dl> |
|
416 <a NAME="HistoryTreeModel.parent" ID="HistoryTreeModel.parent"></a> |
318 <h4>HistoryTreeModel.parent</h4> |
417 <h4>HistoryTreeModel.parent</h4> |
319 <b>parent</b>(<i>index</i>) |
418 <b>parent</b>(<i>index</i>) |
|
419 |
320 <p> |
420 <p> |
321 Public method to get the parent index. |
421 Public method to get the parent index. |
322 </p><dl> |
422 </p> |
|
423 <dl> |
|
424 |
323 <dt><i>index</i></dt> |
425 <dt><i>index</i></dt> |
324 <dd> |
426 <dd> |
325 index of item to get parent (QModelIndex) |
427 index of item to get parent (QModelIndex) |
326 </dd> |
428 </dd> |
327 </dl><dl> |
429 </dl> |
|
430 <dl> |
328 <dt>Returns:</dt> |
431 <dt>Returns:</dt> |
329 <dd> |
432 <dd> |
330 index of parent (QModelIndex) |
433 index of parent (QModelIndex) |
331 </dd> |
434 </dd> |
332 </dl><a NAME="HistoryTreeModel.removeRows" ID="HistoryTreeModel.removeRows"></a> |
435 </dl> |
|
436 <a NAME="HistoryTreeModel.removeRows" ID="HistoryTreeModel.removeRows"></a> |
333 <h4>HistoryTreeModel.removeRows</h4> |
437 <h4>HistoryTreeModel.removeRows</h4> |
334 <b>removeRows</b>(<i>row, count, parent=None</i>) |
438 <b>removeRows</b>(<i>row, count, parent=None</i>) |
|
439 |
335 <p> |
440 <p> |
336 Public method to remove entries from the model. |
441 Public method to remove entries from the model. |
337 </p><dl> |
442 </p> |
|
443 <dl> |
|
444 |
338 <dt><i>row</i></dt> |
445 <dt><i>row</i></dt> |
339 <dd> |
446 <dd> |
340 row of the first entry to remove (integer) |
447 row of the first entry to remove (integer) |
341 </dd><dt><i>count</i></dt> |
448 </dd> |
|
449 <dt><i>count</i></dt> |
342 <dd> |
450 <dd> |
343 number of entries to remove (integer) |
451 number of entries to remove (integer) |
344 </dd><dt><i>parent</i></dt> |
452 </dd> |
|
453 <dt><i>parent</i></dt> |
345 <dd> |
454 <dd> |
346 index of the parent entry (QModelIndex) |
455 index of the parent entry (QModelIndex) |
347 </dd> |
456 </dd> |
348 </dl><dl> |
457 </dl> |
|
458 <dl> |
349 <dt>Returns:</dt> |
459 <dt>Returns:</dt> |
350 <dd> |
460 <dd> |
351 flag indicating successful removal (boolean) |
461 flag indicating successful removal (boolean) |
352 </dd> |
462 </dd> |
353 </dl><a NAME="HistoryTreeModel.rowCount" ID="HistoryTreeModel.rowCount"></a> |
463 </dl> |
|
464 <a NAME="HistoryTreeModel.rowCount" ID="HistoryTreeModel.rowCount"></a> |
354 <h4>HistoryTreeModel.rowCount</h4> |
465 <h4>HistoryTreeModel.rowCount</h4> |
355 <b>rowCount</b>(<i>parent=None</i>) |
466 <b>rowCount</b>(<i>parent=None</i>) |
|
467 |
356 <p> |
468 <p> |
357 Public method to determine the number of rows. |
469 Public method to determine the number of rows. |
358 </p><dl> |
470 </p> |
|
471 <dl> |
|
472 |
359 <dt><i>parent</i></dt> |
473 <dt><i>parent</i></dt> |
360 <dd> |
474 <dd> |
361 index of parent (QModelIndex) |
475 index of parent (QModelIndex) |
362 </dd> |
476 </dd> |
363 </dl><dl> |
477 </dl> |
|
478 <dl> |
364 <dt>Returns:</dt> |
479 <dt>Returns:</dt> |
365 <dd> |
480 <dd> |
366 number of rows (integer) |
481 number of rows (integer) |
367 </dd> |
482 </dd> |
368 </dl><a NAME="HistoryTreeModel.setSourceModel" ID="HistoryTreeModel.setSourceModel"></a> |
483 </dl> |
|
484 <a NAME="HistoryTreeModel.setSourceModel" ID="HistoryTreeModel.setSourceModel"></a> |
369 <h4>HistoryTreeModel.setSourceModel</h4> |
485 <h4>HistoryTreeModel.setSourceModel</h4> |
370 <b>setSourceModel</b>(<i>sourceModel</i>) |
486 <b>setSourceModel</b>(<i>sourceModel</i>) |
|
487 |
371 <p> |
488 <p> |
372 Public method to set the source model. |
489 Public method to set the source model. |
373 </p><dl> |
490 </p> |
|
491 <dl> |
|
492 |
374 <dt><i>sourceModel</i></dt> |
493 <dt><i>sourceModel</i></dt> |
375 <dd> |
494 <dd> |
376 reference to the source model (QAbstractItemModel) |
495 reference to the source model (QAbstractItemModel) |
377 </dd> |
496 </dd> |
378 </dl> |
497 </dl> |