92 <p> |
92 <p> |
93 Constructor |
93 Constructor |
94 </p> |
94 </p> |
95 <dl> |
95 <dl> |
96 |
96 |
97 <dt><i>model</i></dt> |
97 <dt><i>model</i> (QAbstractItemModel)</dt> |
98 <dd> |
98 <dd> |
99 reference to the model (QAbstractItemModel) |
99 reference to the model |
100 </dd> |
100 </dd> |
101 <dt><i>parent</i></dt> |
101 <dt><i>parent</i> (QObject)</dt> |
102 <dd> |
102 <dd> |
103 reference to the parent object (QObject) |
103 reference to the parent object |
104 </dd> |
104 </dd> |
105 </dl> |
105 </dl> |
106 <a NAME="HistoryCompleter.__updateFilter" ID="HistoryCompleter.__updateFilter"></a> |
106 <a NAME="HistoryCompleter.__updateFilter" ID="HistoryCompleter.__updateFilter"></a> |
107 <h4>HistoryCompleter.__updateFilter</h4> |
107 <h4>HistoryCompleter.__updateFilter</h4> |
108 <b>__updateFilter</b>(<i></i>) |
108 <b>__updateFilter</b>(<i></i>) |
117 <p> |
117 <p> |
118 Public method to get a path for a given index. |
118 Public method to get a path for a given index. |
119 </p> |
119 </p> |
120 <dl> |
120 <dl> |
121 |
121 |
122 <dt><i>idx</i></dt> |
122 <dt><i>idx</i> (QModelIndex)</dt> |
123 <dd> |
123 <dd> |
124 reference to the index (QModelIndex) |
124 reference to the index |
125 </dd> |
125 </dd> |
126 </dl> |
126 </dl> |
127 <dl> |
127 <dl> |
128 <dt>Return:</dt> |
128 <dt>Return:</dt> |
129 <dd> |
129 <dd> |
130 the actual URL from the history (string) |
130 the actual URL from the history |
|
131 </dd> |
|
132 </dl> |
|
133 <dl> |
|
134 <dt>Return Type:</dt> |
|
135 <dd> |
|
136 str |
131 </dd> |
137 </dd> |
132 </dl> |
138 </dl> |
133 <a NAME="HistoryCompleter.splitPath" ID="HistoryCompleter.splitPath"></a> |
139 <a NAME="HistoryCompleter.splitPath" ID="HistoryCompleter.splitPath"></a> |
134 <h4>HistoryCompleter.splitPath</h4> |
140 <h4>HistoryCompleter.splitPath</h4> |
135 <b>splitPath</b>(<i>path</i>) |
141 <b>splitPath</b>(<i>path</i>) |
138 Public method to split the given path into strings, that are used to |
144 Public method to split the given path into strings, that are used to |
139 match at each level in the model. |
145 match at each level in the model. |
140 </p> |
146 </p> |
141 <dl> |
147 <dl> |
142 |
148 |
143 <dt><i>path</i></dt> |
149 <dt><i>path</i> (str)</dt> |
144 <dd> |
150 <dd> |
145 path to be split (string) |
151 path to be split |
146 </dd> |
152 </dd> |
147 </dl> |
153 </dl> |
148 <dl> |
154 <dl> |
149 <dt>Return:</dt> |
155 <dt>Return:</dt> |
150 <dd> |
156 <dd> |
151 list of path elements (list of strings) |
157 list of path elements |
|
158 </dd> |
|
159 </dl> |
|
160 <dl> |
|
161 <dt>Return Type:</dt> |
|
162 <dd> |
|
163 list of str |
152 </dd> |
164 </dd> |
153 </dl> |
165 </dl> |
154 <div align="right"><a href="#top">Up</a></div> |
166 <div align="right"><a href="#top">Up</a></div> |
155 <hr /> |
167 <hr /> |
156 <hr /> |
168 <hr /> |
222 <p> |
234 <p> |
223 Constructor |
235 Constructor |
224 </p> |
236 </p> |
225 <dl> |
237 <dl> |
226 |
238 |
227 <dt><i>parent</i></dt> |
239 <dt><i>parent</i> (QObject)</dt> |
228 <dd> |
240 <dd> |
229 reference to the parent object (QObject) |
241 reference to the parent object |
230 </dd> |
242 </dd> |
231 </dl> |
243 </dl> |
232 <a NAME="HistoryCompletionModel.data" ID="HistoryCompletionModel.data"></a> |
244 <a NAME="HistoryCompletionModel.data" ID="HistoryCompletionModel.data"></a> |
233 <h4>HistoryCompletionModel.data</h4> |
245 <h4>HistoryCompletionModel.data</h4> |
234 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) |
246 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) |
236 <p> |
248 <p> |
237 Public method to get data from the model. |
249 Public method to get data from the model. |
238 </p> |
250 </p> |
239 <dl> |
251 <dl> |
240 |
252 |
241 <dt><i>index</i></dt> |
253 <dt><i>index</i> (QModelIndex)</dt> |
242 <dd> |
254 <dd> |
243 index of history entry to get data for (QModelIndex) |
255 index of history entry to get data for |
244 </dd> |
256 </dd> |
245 <dt><i>role</i></dt> |
257 <dt><i>role</i> (int)</dt> |
246 <dd> |
258 <dd> |
247 data role (integer) |
259 data role |
248 </dd> |
260 </dd> |
249 </dl> |
261 </dl> |
250 <dl> |
262 <dl> |
251 <dt>Return:</dt> |
263 <dt>Return:</dt> |
252 <dd> |
264 <dd> |
253 history entry data |
265 history entry data |
|
266 </dd> |
|
267 </dl> |
|
268 <dl> |
|
269 <dt>Return Type:</dt> |
|
270 <dd> |
|
271 Any |
254 </dd> |
272 </dd> |
255 </dl> |
273 </dl> |
256 <a NAME="HistoryCompletionModel.filterAcceptsRow" ID="HistoryCompletionModel.filterAcceptsRow"></a> |
274 <a NAME="HistoryCompletionModel.filterAcceptsRow" ID="HistoryCompletionModel.filterAcceptsRow"></a> |
257 <h4>HistoryCompletionModel.filterAcceptsRow</h4> |
275 <h4>HistoryCompletionModel.filterAcceptsRow</h4> |
258 <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) |
276 <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) |
260 <p> |
278 <p> |
261 Public method to determine, if the row is acceptable. |
279 Public method to determine, if the row is acceptable. |
262 </p> |
280 </p> |
263 <dl> |
281 <dl> |
264 |
282 |
265 <dt><i>sourceRow</i></dt> |
283 <dt><i>sourceRow</i> (int)</dt> |
266 <dd> |
284 <dd> |
267 row number in the source model (integer) |
285 row number in the source model |
268 </dd> |
286 </dd> |
269 <dt><i>sourceParent</i></dt> |
287 <dt><i>sourceParent</i> (QModelIndex)</dt> |
270 <dd> |
288 <dd> |
271 index of the source item (QModelIndex) |
289 index of the source item |
272 </dd> |
290 </dd> |
273 </dl> |
291 </dl> |
274 <dl> |
292 <dl> |
275 <dt>Return:</dt> |
293 <dt>Return:</dt> |
276 <dd> |
294 <dd> |
277 flag indicating acceptance (boolean) |
295 flag indicating acceptance |
|
296 </dd> |
|
297 </dl> |
|
298 <dl> |
|
299 <dt>Return Type:</dt> |
|
300 <dd> |
|
301 bool |
278 </dd> |
302 </dd> |
279 </dl> |
303 </dl> |
280 <a NAME="HistoryCompletionModel.isValid" ID="HistoryCompletionModel.isValid"></a> |
304 <a NAME="HistoryCompletionModel.isValid" ID="HistoryCompletionModel.isValid"></a> |
281 <h4>HistoryCompletionModel.isValid</h4> |
305 <h4>HistoryCompletionModel.isValid</h4> |
282 <b>isValid</b>(<i></i>) |
306 <b>isValid</b>(<i></i>) |
285 Public method to check the model for validity. |
309 Public method to check the model for validity. |
286 </p> |
310 </p> |
287 <dl> |
311 <dl> |
288 <dt>Return:</dt> |
312 <dt>Return:</dt> |
289 <dd> |
313 <dd> |
290 flag indicating a valid status (boolean) |
314 flag indicating a valid status |
|
315 </dd> |
|
316 </dl> |
|
317 <dl> |
|
318 <dt>Return Type:</dt> |
|
319 <dd> |
|
320 bool |
291 </dd> |
321 </dd> |
292 </dl> |
322 </dl> |
293 <a NAME="HistoryCompletionModel.lessThan" ID="HistoryCompletionModel.lessThan"></a> |
323 <a NAME="HistoryCompletionModel.lessThan" ID="HistoryCompletionModel.lessThan"></a> |
294 <h4>HistoryCompletionModel.lessThan</h4> |
324 <h4>HistoryCompletionModel.lessThan</h4> |
295 <b>lessThan</b>(<i>left, right</i>) |
325 <b>lessThan</b>(<i>left, right</i>) |
337 Public method to get the current search string. |
367 Public method to get the current search string. |
338 </p> |
368 </p> |
339 <dl> |
369 <dl> |
340 <dt>Return:</dt> |
370 <dt>Return:</dt> |
341 <dd> |
371 <dd> |
342 current search string (string) |
372 current search string |
|
373 </dd> |
|
374 </dl> |
|
375 <dl> |
|
376 <dt>Return Type:</dt> |
|
377 <dd> |
|
378 str |
343 </dd> |
379 </dd> |
344 </dl> |
380 </dl> |
345 <a NAME="HistoryCompletionModel.setSearchString" ID="HistoryCompletionModel.setSearchString"></a> |
381 <a NAME="HistoryCompletionModel.setSearchString" ID="HistoryCompletionModel.setSearchString"></a> |
346 <h4>HistoryCompletionModel.setSearchString</h4> |
382 <h4>HistoryCompletionModel.setSearchString</h4> |
347 <b>setSearchString</b>(<i>sstring</i>) |
383 <b>setSearchString</b>(<i>sstring</i>) |
349 <p> |
385 <p> |
350 Public method to set the current search string. |
386 Public method to set the current search string. |
351 </p> |
387 </p> |
352 <dl> |
388 <dl> |
353 |
389 |
354 <dt><i>sstring</i></dt> |
390 <dt><i>sstring</i> (str)</dt> |
355 <dd> |
391 <dd> |
356 new search string (string) |
392 new search string |
357 </dd> |
393 </dd> |
358 </dl> |
394 </dl> |
359 <a NAME="HistoryCompletionModel.setValid" ID="HistoryCompletionModel.setValid"></a> |
395 <a NAME="HistoryCompletionModel.setValid" ID="HistoryCompletionModel.setValid"></a> |
360 <h4>HistoryCompletionModel.setValid</h4> |
396 <h4>HistoryCompletionModel.setValid</h4> |
361 <b>setValid</b>(<i>valid</i>) |
397 <b>setValid</b>(<i>valid</i>) |
421 <p> |
457 <p> |
422 Constructor |
458 Constructor |
423 </p> |
459 </p> |
424 <dl> |
460 <dl> |
425 |
461 |
426 <dt><i>parent</i></dt> |
462 <dt><i>parent</i> (QWidget)</dt> |
427 <dd> |
463 <dd> |
428 reference to the parent widget (QWidget) |
464 reference to the parent widget |
429 </dd> |
465 </dd> |
430 </dl> |
466 </dl> |
431 <a NAME="HistoryCompletionView.resizeEvent" ID="HistoryCompletionView.resizeEvent"></a> |
467 <a NAME="HistoryCompletionView.resizeEvent" ID="HistoryCompletionView.resizeEvent"></a> |
432 <h4>HistoryCompletionView.resizeEvent</h4> |
468 <h4>HistoryCompletionView.resizeEvent</h4> |
433 <b>resizeEvent</b>(<i>evt</i>) |
469 <b>resizeEvent</b>(<i>evt</i>) |
435 <p> |
471 <p> |
436 Protected method handling resize events. |
472 Protected method handling resize events. |
437 </p> |
473 </p> |
438 <dl> |
474 <dl> |
439 |
475 |
440 <dt><i>evt</i></dt> |
476 <dt><i>evt</i> (QResizeEvent)</dt> |
441 <dd> |
477 <dd> |
442 reference to the resize event (QResizeEvent) |
478 reference to the resize event |
443 </dd> |
479 </dd> |
444 </dl> |
480 </dl> |
445 <a NAME="HistoryCompletionView.sizeHintForRow" ID="HistoryCompletionView.sizeHintForRow"></a> |
481 <a NAME="HistoryCompletionView.sizeHintForRow" ID="HistoryCompletionView.sizeHintForRow"></a> |
446 <h4>HistoryCompletionView.sizeHintForRow</h4> |
482 <h4>HistoryCompletionView.sizeHintForRow</h4> |
447 <b>sizeHintForRow</b>(<i>row</i>) |
483 <b>sizeHintForRow</b>(<i>row</i>) |