130 </table> |
130 </table> |
131 <h3>Methods</h3> |
131 <h3>Methods</h3> |
132 <table> |
132 <table> |
133 <tr> |
133 <tr> |
134 <td><a href="#HistoryFilterModel.__init__">HistoryFilterModel</a></td> |
134 <td><a href="#HistoryFilterModel.__init__">HistoryFilterModel</a></td> |
135 <td>Constructor</td> |
135 <td>Constructor</td> |
136 </tr><tr> |
136 </tr><tr> |
137 <td><a href="#HistoryFilterModel.__frequencyScore">__frequencyScore</a></td> |
137 <td><a href="#HistoryFilterModel.__frequencyScore">__frequencyScore</a></td> |
138 <td>Private method to calculate the frequency score.</td> |
138 <td>Private method to calculate the frequency score.</td> |
139 </tr><tr> |
139 </tr><tr> |
140 <td><a href="#HistoryFilterModel.__load">__load</a></td> |
140 <td><a href="#HistoryFilterModel.__load">__load</a></td> |
141 <td>Private method to load the model data.</td> |
141 <td>Private method to load the model data.</td> |
142 </tr><tr> |
142 </tr><tr> |
143 <td><a href="#HistoryFilterModel.__sourceDataChanged">__sourceDataChanged</a></td> |
143 <td><a href="#HistoryFilterModel.__sourceDataChanged">__sourceDataChanged</a></td> |
144 <td>Private slot to handle the change of data of the source model.</td> |
144 <td>Private slot to handle the change of data of the source model.</td> |
145 </tr><tr> |
145 </tr><tr> |
146 <td><a href="#HistoryFilterModel.__sourceReset">__sourceReset</a></td> |
146 <td><a href="#HistoryFilterModel.__sourceReset">__sourceReset</a></td> |
147 <td>Private slot to handle a reset of the source model.</td> |
147 <td>Private slot to handle a reset of the source model.</td> |
148 </tr><tr> |
148 </tr><tr> |
149 <td><a href="#HistoryFilterModel.__sourceRowsInserted">__sourceRowsInserted</a></td> |
149 <td><a href="#HistoryFilterModel.__sourceRowsInserted">__sourceRowsInserted</a></td> |
150 <td>Private slot to handle the insertion of data in the source model.</td> |
150 <td>Private slot to handle the insertion of data in the source model.</td> |
151 </tr><tr> |
151 </tr><tr> |
152 <td><a href="#HistoryFilterModel.__sourceRowsRemoved">__sourceRowsRemoved</a></td> |
152 <td><a href="#HistoryFilterModel.__sourceRowsRemoved">__sourceRowsRemoved</a></td> |
153 <td>Private slot to handle the removal of data in the source model.</td> |
153 <td>Private slot to handle the removal of data in the source model.</td> |
154 </tr><tr> |
154 </tr><tr> |
155 <td><a href="#HistoryFilterModel.columnCount">columnCount</a></td> |
155 <td><a href="#HistoryFilterModel.columnCount">columnCount</a></td> |
156 <td>Public method to get the number of columns.</td> |
156 <td>Public method to get the number of columns.</td> |
157 </tr><tr> |
157 </tr><tr> |
158 <td><a href="#HistoryFilterModel.data">data</a></td> |
158 <td><a href="#HistoryFilterModel.data">data</a></td> |
159 <td>Public method to get data from the model.</td> |
159 <td>Public method to get data from the model.</td> |
160 </tr><tr> |
160 </tr><tr> |
161 <td><a href="#HistoryFilterModel.headerData">headerData</a></td> |
161 <td><a href="#HistoryFilterModel.headerData">headerData</a></td> |
162 <td>Public method to get the header data.</td> |
162 <td>Public method to get the header data.</td> |
163 </tr><tr> |
163 </tr><tr> |
164 <td><a href="#HistoryFilterModel.historyContains">historyContains</a></td> |
164 <td><a href="#HistoryFilterModel.historyContains">historyContains</a></td> |
165 <td>Public method to check the history for an entry.</td> |
165 <td>Public method to check the history for an entry.</td> |
166 </tr><tr> |
166 </tr><tr> |
167 <td><a href="#HistoryFilterModel.historyLocation">historyLocation</a></td> |
167 <td><a href="#HistoryFilterModel.historyLocation">historyLocation</a></td> |
168 <td>Public method to get the row number of an entry in the source model.</td> |
168 <td>Public method to get the row number of an entry in the source model.</td> |
169 </tr><tr> |
169 </tr><tr> |
170 <td><a href="#HistoryFilterModel.index">index</a></td> |
170 <td><a href="#HistoryFilterModel.index">index</a></td> |
171 <td>Public method to create an index.</td> |
171 <td>Public method to create an index.</td> |
172 </tr><tr> |
172 </tr><tr> |
173 <td><a href="#HistoryFilterModel.mapFromSource">mapFromSource</a></td> |
173 <td><a href="#HistoryFilterModel.mapFromSource">mapFromSource</a></td> |
174 <td>Public method to map an index to the proxy model index.</td> |
174 <td>Public method to map an index to the proxy model index.</td> |
175 </tr><tr> |
175 </tr><tr> |
176 <td><a href="#HistoryFilterModel.mapToSource">mapToSource</a></td> |
176 <td><a href="#HistoryFilterModel.mapToSource">mapToSource</a></td> |
177 <td>Public method to map an index to the source model index.</td> |
177 <td>Public method to map an index to the source model index.</td> |
178 </tr><tr> |
178 </tr><tr> |
179 <td><a href="#HistoryFilterModel.parent">parent</a></td> |
179 <td><a href="#HistoryFilterModel.parent">parent</a></td> |
180 <td>Public method to get the parent index.</td> |
180 <td>Public method to get the parent index.</td> |
181 </tr><tr> |
181 </tr><tr> |
182 <td><a href="#HistoryFilterModel.recalculateFrequencies">recalculateFrequencies</a></td> |
182 <td><a href="#HistoryFilterModel.recalculateFrequencies">recalculateFrequencies</a></td> |
183 <td>Public method to recalculate the frequencies.</td> |
183 <td>Public method to recalculate the frequencies.</td> |
184 </tr><tr> |
184 </tr><tr> |
185 <td><a href="#HistoryFilterModel.removeRows">removeRows</a></td> |
185 <td><a href="#HistoryFilterModel.removeRows">removeRows</a></td> |
186 <td>Public method to remove entries from the model.</td> |
186 <td>Public method to remove entries from the model.</td> |
187 </tr><tr> |
187 </tr><tr> |
188 <td><a href="#HistoryFilterModel.rowCount">rowCount</a></td> |
188 <td><a href="#HistoryFilterModel.rowCount">rowCount</a></td> |
189 <td>Public method to determine the number of rows.</td> |
189 <td>Public method to determine the number of rows.</td> |
190 </tr><tr> |
190 </tr><tr> |
191 <td><a href="#HistoryFilterModel.setSourceModel">setSourceModel</a></td> |
191 <td><a href="#HistoryFilterModel.setSourceModel">setSourceModel</a></td> |
192 <td>Public method to set the source model.</td> |
192 <td>Public method to set the source model.</td> |
193 </tr> |
193 </tr> |
194 </table> |
194 </table> |
195 <a NAME="HistoryFilterModel.__init__" ID="HistoryFilterModel.__init__"></a> |
195 <a NAME="HistoryFilterModel.__init__" ID="HistoryFilterModel.__init__"></a> |
196 <h4>HistoryFilterModel (Constructor)</h4> |
196 <h4>HistoryFilterModel (Constructor)</h4> |
197 <b>HistoryFilterModel</b>(<i>sourceModel, parent = None</i>) |
197 <b>HistoryFilterModel</b>(<i>sourceModel, parent = None</i>) |
198 <p> |
198 <p> |
199 Constructor |
199 Constructor |
200 </p><dl> |
200 </p><dl> |
201 <dt><i>sourceModel</i></dt> |
201 <dt><i>sourceModel</i></dt> |
202 <dd> |
202 <dd> |
203 reference to the source model (QAbstractItemModel) |
203 reference to the source model (QAbstractItemModel) |
204 </dd><dt><i>parent</i></dt> |
204 </dd><dt><i>parent</i></dt> |
205 <dd> |
205 <dd> |
206 reference to the parent object (QObject) |
206 reference to the parent object (QObject) |
207 </dd> |
207 </dd> |
208 </dl><a NAME="HistoryFilterModel.__frequencyScore" ID="HistoryFilterModel.__frequencyScore"></a> |
208 </dl><a NAME="HistoryFilterModel.__frequencyScore" ID="HistoryFilterModel.__frequencyScore"></a> |
209 <h4>HistoryFilterModel.__frequencyScore</h4> |
209 <h4>HistoryFilterModel.__frequencyScore</h4> |
210 <b>__frequencyScore</b>(<i>sourceIndex</i>) |
210 <b>__frequencyScore</b>(<i>sourceIndex</i>) |
211 <p> |
211 <p> |
212 Private method to calculate the frequency score. |
212 Private method to calculate the frequency score. |
213 </p><dl> |
213 </p><dl> |
214 <dt><i>sourceIndex</i></dt> |
214 <dt><i>sourceIndex</i></dt> |
215 <dd> |
215 <dd> |
216 index of the source model (QModelIndex) |
216 index of the source model (QModelIndex) |
217 </dd> |
217 </dd> |
218 </dl><dl> |
218 </dl><dl> |
219 <dt>Returns:</dt> |
219 <dt>Returns:</dt> |
220 <dd> |
220 <dd> |
221 frequency score (integer) |
221 frequency score (integer) |
222 </dd> |
222 </dd> |
223 </dl><a NAME="HistoryFilterModel.__load" ID="HistoryFilterModel.__load"></a> |
223 </dl><a NAME="HistoryFilterModel.__load" ID="HistoryFilterModel.__load"></a> |
224 <h4>HistoryFilterModel.__load</h4> |
224 <h4>HistoryFilterModel.__load</h4> |
225 <b>__load</b>(<i></i>) |
225 <b>__load</b>(<i></i>) |
226 <p> |
226 <p> |
227 Private method to load the model data. |
227 Private method to load the model data. |
228 </p><a NAME="HistoryFilterModel.__sourceDataChanged" ID="HistoryFilterModel.__sourceDataChanged"></a> |
228 </p><a NAME="HistoryFilterModel.__sourceDataChanged" ID="HistoryFilterModel.__sourceDataChanged"></a> |
229 <h4>HistoryFilterModel.__sourceDataChanged</h4> |
229 <h4>HistoryFilterModel.__sourceDataChanged</h4> |
230 <b>__sourceDataChanged</b>(<i>topLeft, bottomRight</i>) |
230 <b>__sourceDataChanged</b>(<i>topLeft, bottomRight</i>) |
231 <p> |
231 <p> |
232 Private slot to handle the change of data of the source model. |
232 Private slot to handle the change of data of the source model. |
233 </p><dl> |
233 </p><dl> |
234 <dt><i>topLeft</i></dt> |
234 <dt><i>topLeft</i></dt> |
235 <dd> |
235 <dd> |
236 index of top left data element (QModelIndex) |
236 index of top left data element (QModelIndex) |
237 </dd><dt><i>bottomRight</i></dt> |
237 </dd><dt><i>bottomRight</i></dt> |
238 <dd> |
238 <dd> |
239 index of bottom right data element (QModelIndex) |
239 index of bottom right data element (QModelIndex) |
240 </dd> |
240 </dd> |
241 </dl><a NAME="HistoryFilterModel.__sourceReset" ID="HistoryFilterModel.__sourceReset"></a> |
241 </dl><a NAME="HistoryFilterModel.__sourceReset" ID="HistoryFilterModel.__sourceReset"></a> |
242 <h4>HistoryFilterModel.__sourceReset</h4> |
242 <h4>HistoryFilterModel.__sourceReset</h4> |
243 <b>__sourceReset</b>(<i></i>) |
243 <b>__sourceReset</b>(<i></i>) |
244 <p> |
244 <p> |
245 Private slot to handle a reset of the source model. |
245 Private slot to handle a reset of the source model. |
246 </p><a NAME="HistoryFilterModel.__sourceRowsInserted" ID="HistoryFilterModel.__sourceRowsInserted"></a> |
246 </p><a NAME="HistoryFilterModel.__sourceRowsInserted" ID="HistoryFilterModel.__sourceRowsInserted"></a> |
247 <h4>HistoryFilterModel.__sourceRowsInserted</h4> |
247 <h4>HistoryFilterModel.__sourceRowsInserted</h4> |
248 <b>__sourceRowsInserted</b>(<i>parent, start, end</i>) |
248 <b>__sourceRowsInserted</b>(<i>parent, start, end</i>) |
249 <p> |
249 <p> |
250 Private slot to handle the insertion of data in the source model. |
250 Private slot to handle the insertion of data in the source model. |
251 </p><dl> |
251 </p><dl> |
252 <dt><i>parent</i></dt> |
252 <dt><i>parent</i></dt> |
253 <dd> |
253 <dd> |
254 reference to the parent index (QModelIndex) |
254 reference to the parent index (QModelIndex) |
255 </dd><dt><i>start</i></dt> |
255 </dd><dt><i>start</i></dt> |
256 <dd> |
256 <dd> |
257 start row (integer) |
257 start row (integer) |
258 </dd><dt><i>end</i></dt> |
258 </dd><dt><i>end</i></dt> |
259 <dd> |
259 <dd> |
260 end row (integer) |
260 end row (integer) |
261 </dd> |
261 </dd> |
262 </dl><a NAME="HistoryFilterModel.__sourceRowsRemoved" ID="HistoryFilterModel.__sourceRowsRemoved"></a> |
262 </dl><a NAME="HistoryFilterModel.__sourceRowsRemoved" ID="HistoryFilterModel.__sourceRowsRemoved"></a> |
263 <h4>HistoryFilterModel.__sourceRowsRemoved</h4> |
263 <h4>HistoryFilterModel.__sourceRowsRemoved</h4> |
264 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>) |
264 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>) |
265 <p> |
265 <p> |
266 Private slot to handle the removal of data in the source model. |
266 Private slot to handle the removal of data in the source model. |
267 </p><dl> |
267 </p><dl> |
268 <dt><i>parent</i></dt> |
268 <dt><i>parent</i></dt> |
269 <dd> |
269 <dd> |
270 reference to the parent index (QModelIndex) |
270 reference to the parent index (QModelIndex) |
271 </dd><dt><i>start</i></dt> |
271 </dd><dt><i>start</i></dt> |
272 <dd> |
272 <dd> |
273 start row (integer) |
273 start row (integer) |
274 </dd><dt><i>end</i></dt> |
274 </dd><dt><i>end</i></dt> |
275 <dd> |
275 <dd> |
276 end row (integer) |
276 end row (integer) |
277 </dd> |
277 </dd> |
278 </dl><a NAME="HistoryFilterModel.columnCount" ID="HistoryFilterModel.columnCount"></a> |
278 </dl><a NAME="HistoryFilterModel.columnCount" ID="HistoryFilterModel.columnCount"></a> |
279 <h4>HistoryFilterModel.columnCount</h4> |
279 <h4>HistoryFilterModel.columnCount</h4> |
280 <b>columnCount</b>(<i>parent = QModelIndex()</i>) |
280 <b>columnCount</b>(<i>parent = QModelIndex()</i>) |
281 <p> |
281 <p> |
282 Public method to get the number of columns. |
282 Public method to get the number of columns. |
283 </p><dl> |
283 </p><dl> |
284 <dt><i>parent</i></dt> |
284 <dt><i>parent</i></dt> |
285 <dd> |
285 <dd> |
286 index of parent (QModelIndex) |
286 index of parent (QModelIndex) |
287 </dd> |
287 </dd> |
288 </dl><dl> |
288 </dl><dl> |
289 <dt>Returns:</dt> |
289 <dt>Returns:</dt> |
290 <dd> |
290 <dd> |
291 number of columns (integer) |
291 number of columns (integer) |
292 </dd> |
292 </dd> |
293 </dl><a NAME="HistoryFilterModel.data" ID="HistoryFilterModel.data"></a> |
293 </dl><a NAME="HistoryFilterModel.data" ID="HistoryFilterModel.data"></a> |
294 <h4>HistoryFilterModel.data</h4> |
294 <h4>HistoryFilterModel.data</h4> |
295 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) |
295 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) |
296 <p> |
296 <p> |
297 Public method to get data from the model. |
297 Public method to get data from the model. |
298 </p><dl> |
298 </p><dl> |
299 <dt><i>index</i></dt> |
299 <dt><i>index</i></dt> |
300 <dd> |
300 <dd> |
301 index of history entry to get data for (QModelIndex) |
301 index of history entry to get data for (QModelIndex) |
302 </dd><dt><i>role</i></dt> |
302 </dd><dt><i>role</i></dt> |
303 <dd> |
303 <dd> |
304 data role (integer) |
304 data role (integer) |
305 </dd> |
305 </dd> |
306 </dl><dl> |
306 </dl><dl> |
307 <dt>Returns:</dt> |
307 <dt>Returns:</dt> |
308 <dd> |
308 <dd> |
309 history entry data |
309 history entry data |
310 </dd> |
310 </dd> |
311 </dl><a NAME="HistoryFilterModel.headerData" ID="HistoryFilterModel.headerData"></a> |
311 </dl><a NAME="HistoryFilterModel.headerData" ID="HistoryFilterModel.headerData"></a> |
312 <h4>HistoryFilterModel.headerData</h4> |
312 <h4>HistoryFilterModel.headerData</h4> |
313 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) |
313 <b>headerData</b>(<i>section, orientation, role = Qt.DisplayRole</i>) |
314 <p> |
314 <p> |
315 Public method to get the header data. |
315 Public method to get the header data. |
316 </p><dl> |
316 </p><dl> |
317 <dt><i>section</i></dt> |
317 <dt><i>section</i></dt> |
318 <dd> |
318 <dd> |
319 section number (integer) |
319 section number (integer) |
320 </dd><dt><i>orientation</i></dt> |
320 </dd><dt><i>orientation</i></dt> |
321 <dd> |
321 <dd> |
322 header orientation (Qt.Orientation) |
322 header orientation (Qt.Orientation) |
323 </dd><dt><i>role</i></dt> |
323 </dd><dt><i>role</i></dt> |
324 <dd> |
324 <dd> |
325 data role (integer) |
325 data role (integer) |
326 </dd> |
326 </dd> |
327 </dl><dl> |
327 </dl><dl> |
328 <dt>Returns:</dt> |
328 <dt>Returns:</dt> |
329 <dd> |
329 <dd> |
330 header data |
330 header data |
331 </dd> |
331 </dd> |
332 </dl><a NAME="HistoryFilterModel.historyContains" ID="HistoryFilterModel.historyContains"></a> |
332 </dl><a NAME="HistoryFilterModel.historyContains" ID="HistoryFilterModel.historyContains"></a> |
333 <h4>HistoryFilterModel.historyContains</h4> |
333 <h4>HistoryFilterModel.historyContains</h4> |
334 <b>historyContains</b>(<i>url</i>) |
334 <b>historyContains</b>(<i>url</i>) |
335 <p> |
335 <p> |
336 Public method to check the history for an entry. |
336 Public method to check the history for an entry. |
337 </p><dl> |
337 </p><dl> |
338 <dt><i>url</i></dt> |
338 <dt><i>url</i></dt> |
339 <dd> |
339 <dd> |
340 URL to check for (string) |
340 URL to check for (string) |
341 </dd> |
341 </dd> |
342 </dl><dl> |
342 </dl><dl> |
343 <dt>Returns:</dt> |
343 <dt>Returns:</dt> |
344 <dd> |
344 <dd> |
345 flag indicating success (boolean) |
345 flag indicating success (boolean) |
346 </dd> |
346 </dd> |
347 </dl><a NAME="HistoryFilterModel.historyLocation" ID="HistoryFilterModel.historyLocation"></a> |
347 </dl><a NAME="HistoryFilterModel.historyLocation" ID="HistoryFilterModel.historyLocation"></a> |
348 <h4>HistoryFilterModel.historyLocation</h4> |
348 <h4>HistoryFilterModel.historyLocation</h4> |
349 <b>historyLocation</b>(<i>url</i>) |
349 <b>historyLocation</b>(<i>url</i>) |
350 <p> |
350 <p> |
351 Public method to get the row number of an entry in the source model. |
351 Public method to get the row number of an entry in the source model. |
352 </p><dl> |
352 </p><dl> |
353 <dt><i>url</i></dt> |
353 <dt><i>url</i></dt> |
354 <dd> |
354 <dd> |
355 URL to check for (tring) |
355 URL to check for (tring) |
356 </dd> |
356 </dd> |
357 </dl><dl> |
357 </dl><dl> |
358 <dt>Returns:</dt> |
358 <dt>Returns:</dt> |
359 <dd> |
359 <dd> |
360 row number in the source model (integer) |
360 row number in the source model (integer) |
361 </dd> |
361 </dd> |
362 </dl><a NAME="HistoryFilterModel.index" ID="HistoryFilterModel.index"></a> |
362 </dl><a NAME="HistoryFilterModel.index" ID="HistoryFilterModel.index"></a> |
363 <h4>HistoryFilterModel.index</h4> |
363 <h4>HistoryFilterModel.index</h4> |
364 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) |
364 <b>index</b>(<i>row, column, parent = QModelIndex()</i>) |
365 <p> |
365 <p> |
366 Public method to create an index. |
366 Public method to create an index. |
367 </p><dl> |
367 </p><dl> |
368 <dt><i>row</i></dt> |
368 <dt><i>row</i></dt> |
369 <dd> |
369 <dd> |
370 row number for the index (integer) |
370 row number for the index (integer) |
371 </dd><dt><i>column</i></dt> |
371 </dd><dt><i>column</i></dt> |
372 <dd> |
372 <dd> |
373 column number for the index (integer) |
373 column number for the index (integer) |
374 </dd><dt><i>parent</i></dt> |
374 </dd><dt><i>parent</i></dt> |
375 <dd> |
375 <dd> |
376 index of the parent item (QModelIndex) |
376 index of the parent item (QModelIndex) |
377 </dd> |
377 </dd> |
378 </dl><dl> |
378 </dl><dl> |
379 <dt>Returns:</dt> |
379 <dt>Returns:</dt> |
380 <dd> |
380 <dd> |
381 requested index (QModelIndex) |
381 requested index (QModelIndex) |
382 </dd> |
382 </dd> |
383 </dl><a NAME="HistoryFilterModel.mapFromSource" ID="HistoryFilterModel.mapFromSource"></a> |
383 </dl><a NAME="HistoryFilterModel.mapFromSource" ID="HistoryFilterModel.mapFromSource"></a> |
384 <h4>HistoryFilterModel.mapFromSource</h4> |
384 <h4>HistoryFilterModel.mapFromSource</h4> |
385 <b>mapFromSource</b>(<i>sourceIndex</i>) |
385 <b>mapFromSource</b>(<i>sourceIndex</i>) |
386 <p> |
386 <p> |
387 Public method to map an index to the proxy model index. |
387 Public method to map an index to the proxy model index. |
388 </p><dl> |
388 </p><dl> |
389 <dt><i>sourceIndex</i></dt> |
389 <dt><i>sourceIndex</i></dt> |
390 <dd> |
390 <dd> |
391 reference to a source model index (QModelIndex) |
391 reference to a source model index (QModelIndex) |
392 </dd> |
392 </dd> |
393 </dl><dl> |
393 </dl><dl> |
394 <dt>Returns:</dt> |
394 <dt>Returns:</dt> |
395 <dd> |
395 <dd> |
396 proxy model index (QModelIndex) |
396 proxy model index (QModelIndex) |
397 </dd> |
397 </dd> |
398 </dl><a NAME="HistoryFilterModel.mapToSource" ID="HistoryFilterModel.mapToSource"></a> |
398 </dl><a NAME="HistoryFilterModel.mapToSource" ID="HistoryFilterModel.mapToSource"></a> |
399 <h4>HistoryFilterModel.mapToSource</h4> |
399 <h4>HistoryFilterModel.mapToSource</h4> |
400 <b>mapToSource</b>(<i>proxyIndex</i>) |
400 <b>mapToSource</b>(<i>proxyIndex</i>) |
401 <p> |
401 <p> |
402 Public method to map an index to the source model index. |
402 Public method to map an index to the source model index. |
403 </p><dl> |
403 </p><dl> |
404 <dt><i>proxyIndex</i></dt> |
404 <dt><i>proxyIndex</i></dt> |
405 <dd> |
405 <dd> |
406 reference to a proxy model index (QModelIndex) |
406 reference to a proxy model index (QModelIndex) |
407 </dd> |
407 </dd> |
408 </dl><dl> |
408 </dl><dl> |
409 <dt>Returns:</dt> |
409 <dt>Returns:</dt> |
410 <dd> |
410 <dd> |
411 source model index (QModelIndex) |
411 source model index (QModelIndex) |
412 </dd> |
412 </dd> |
413 </dl><a NAME="HistoryFilterModel.parent" ID="HistoryFilterModel.parent"></a> |
413 </dl><a NAME="HistoryFilterModel.parent" ID="HistoryFilterModel.parent"></a> |
414 <h4>HistoryFilterModel.parent</h4> |
414 <h4>HistoryFilterModel.parent</h4> |
415 <b>parent</b>(<i>index</i>) |
415 <b>parent</b>(<i>index</i>) |
416 <p> |
416 <p> |
417 Public method to get the parent index. |
417 Public method to get the parent index. |
418 </p><dl> |
418 </p><dl> |
419 <dt><i>index</i></dt> |
419 <dt><i>index</i></dt> |
420 <dd> |
420 <dd> |
421 index of item to get parent (QModelIndex) |
421 index of item to get parent (QModelIndex) |
422 </dd> |
422 </dd> |
423 </dl><dl> |
423 </dl><dl> |
424 <dt>Returns:</dt> |
424 <dt>Returns:</dt> |
425 <dd> |
425 <dd> |
426 index of parent (QModelIndex) |
426 index of parent (QModelIndex) |
427 </dd> |
427 </dd> |
428 </dl><a NAME="HistoryFilterModel.recalculateFrequencies" ID="HistoryFilterModel.recalculateFrequencies"></a> |
428 </dl><a NAME="HistoryFilterModel.recalculateFrequencies" ID="HistoryFilterModel.recalculateFrequencies"></a> |
429 <h4>HistoryFilterModel.recalculateFrequencies</h4> |
429 <h4>HistoryFilterModel.recalculateFrequencies</h4> |
430 <b>recalculateFrequencies</b>(<i></i>) |
430 <b>recalculateFrequencies</b>(<i></i>) |
431 <p> |
431 <p> |
432 Public method to recalculate the frequencies. |
432 Public method to recalculate the frequencies. |
433 </p><a NAME="HistoryFilterModel.removeRows" ID="HistoryFilterModel.removeRows"></a> |
433 </p><a NAME="HistoryFilterModel.removeRows" ID="HistoryFilterModel.removeRows"></a> |
434 <h4>HistoryFilterModel.removeRows</h4> |
434 <h4>HistoryFilterModel.removeRows</h4> |
435 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
435 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) |
436 <p> |
436 <p> |
437 Public method to remove entries from the model. |
437 Public method to remove entries from the model. |
438 </p><dl> |
438 </p><dl> |
439 <dt><i>row</i></dt> |
439 <dt><i>row</i></dt> |
440 <dd> |
440 <dd> |
441 row of the first entry to remove (integer) |
441 row of the first entry to remove (integer) |
442 </dd><dt><i>count</i></dt> |
442 </dd><dt><i>count</i></dt> |
443 <dd> |
443 <dd> |
444 number of entries to remove (integer) |
444 number of entries to remove (integer) |
445 </dd><dt><i>index</i></dt> |
445 </dd><dt><i>index</i></dt> |
446 <dd> |
446 <dd> |
447 of the parent entry (QModelIndex) |
447 of the parent entry (QModelIndex) |
448 </dd> |
448 </dd> |
449 </dl><dl> |
449 </dl><dl> |
450 <dt>Returns:</dt> |
450 <dt>Returns:</dt> |
451 <dd> |
451 <dd> |
452 flag indicating successful removal (boolean) |
452 flag indicating successful removal (boolean) |
453 </dd> |
453 </dd> |
454 </dl><a NAME="HistoryFilterModel.rowCount" ID="HistoryFilterModel.rowCount"></a> |
454 </dl><a NAME="HistoryFilterModel.rowCount" ID="HistoryFilterModel.rowCount"></a> |
455 <h4>HistoryFilterModel.rowCount</h4> |
455 <h4>HistoryFilterModel.rowCount</h4> |
456 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
456 <b>rowCount</b>(<i>parent = QModelIndex()</i>) |
457 <p> |
457 <p> |
458 Public method to determine the number of rows. |
458 Public method to determine the number of rows. |
459 </p><dl> |
459 </p><dl> |
460 <dt><i>parent</i></dt> |
460 <dt><i>parent</i></dt> |
461 <dd> |
461 <dd> |
462 index of parent (QModelIndex) |
462 index of parent (QModelIndex) |
463 </dd> |
463 </dd> |
464 </dl><dl> |
464 </dl><dl> |
465 <dt>Returns:</dt> |
465 <dt>Returns:</dt> |
466 <dd> |
466 <dd> |
467 number of rows (integer) |
467 number of rows (integer) |
468 </dd> |
468 </dd> |
469 </dl><a NAME="HistoryFilterModel.setSourceModel" ID="HistoryFilterModel.setSourceModel"></a> |
469 </dl><a NAME="HistoryFilterModel.setSourceModel" ID="HistoryFilterModel.setSourceModel"></a> |
470 <h4>HistoryFilterModel.setSourceModel</h4> |
470 <h4>HistoryFilterModel.setSourceModel</h4> |
471 <b>setSourceModel</b>(<i>sourceModel</i>) |
471 <b>setSourceModel</b>(<i>sourceModel</i>) |
472 <p> |
472 <p> |
473 Public method to set the source model. |
473 Public method to set the source model. |
474 </p><dl> |
474 </p><dl> |
475 <dt><i>sourceModel</i></dt> |
475 <dt><i>sourceModel</i></dt> |
476 <dd> |
476 <dd> |
477 reference to the source model (QAbstractItemModel) |
477 reference to the source model (QAbstractItemModel) |
478 </dd> |
478 </dd> |
479 </dl> |
479 </dl> |
480 <div align="right"><a href="#top">Up</a></div> |
480 <div align="right"><a href="#top">Up</a></div> |
481 <hr /> |
481 <hr /> |
482 </body></html> |
482 </body></html> |