34 <td><a href="#HistoryMenu">HistoryMenu</a></td> |
34 <td><a href="#HistoryMenu">HistoryMenu</a></td> |
35 <td>Class implementing the history menu.</td> |
35 <td>Class implementing the history menu.</td> |
36 </tr><tr> |
36 </tr><tr> |
37 <td><a href="#HistoryMenuModel">HistoryMenuModel</a></td> |
37 <td><a href="#HistoryMenuModel">HistoryMenuModel</a></td> |
38 <td>Class implementing a model for the history menu.</td> |
38 <td>Class implementing a model for the history menu.</td> |
|
39 </tr><tr> |
|
40 <td><a href="#HistoryMostVisitedMenu">HistoryMostVisitedMenu</a></td> |
|
41 <td>Class implementing the most visited history menu.</td> |
|
42 </tr><tr> |
|
43 <td><a href="#HistoryMostVisitedMenuModel">HistoryMostVisitedMenuModel</a></td> |
|
44 <td>Class implementing a model to show the most visited history entries.</td> |
39 </tr> |
45 </tr> |
40 </table> |
46 </table> |
41 <h3>Functions</h3> |
47 <h3>Functions</h3> |
42 <table> |
48 <table> |
43 <tr><td>None</td></tr> |
49 <tr><td>None</td></tr> |
340 <dd> |
346 <dd> |
341 number of rows (integer) |
347 number of rows (integer) |
342 </dd> |
348 </dd> |
343 </dl> |
349 </dl> |
344 <div align="right"><a href="#top">Up</a></div> |
350 <div align="right"><a href="#top">Up</a></div> |
|
351 <hr /><hr /> |
|
352 <a NAME="HistoryMostVisitedMenu" ID="HistoryMostVisitedMenu"></a> |
|
353 <h2>HistoryMostVisitedMenu</h2> |
|
354 <p> |
|
355 Class implementing the most visited history menu. |
|
356 </p><h3>Signals</h3> |
|
357 <dl> |
|
358 <dt>newUrl(QUrl, str)</dt> |
|
359 <dd> |
|
360 emitted to open a URL in a new tab |
|
361 </dd><dt>openUrl(QUrl, str)</dt> |
|
362 <dd> |
|
363 emitted to open a URL in the current tab |
|
364 </dd> |
|
365 </dl> |
|
366 <h3>Derived from</h3> |
|
367 E5ModelMenu |
|
368 <h3>Class Attributes</h3> |
|
369 <table> |
|
370 <tr><td>None</td></tr> |
|
371 </table> |
|
372 <h3>Class Methods</h3> |
|
373 <table> |
|
374 <tr><td>None</td></tr> |
|
375 </table> |
|
376 <h3>Methods</h3> |
|
377 <table> |
|
378 <tr> |
|
379 <td><a href="#HistoryMostVisitedMenu.__init__">HistoryMostVisitedMenu</a></td> |
|
380 <td>Constructor</td> |
|
381 </tr><tr> |
|
382 <td><a href="#HistoryMostVisitedMenu.__activated">__activated</a></td> |
|
383 <td>Private slot handling the activated signal.</td> |
|
384 </tr><tr> |
|
385 <td><a href="#HistoryMostVisitedMenu.prePopulated">prePopulated</a></td> |
|
386 <td>Public method to add any actions before the tree.</td> |
|
387 </tr> |
|
388 </table> |
|
389 <h3>Static Methods</h3> |
|
390 <table> |
|
391 <tr><td>None</td></tr> |
|
392 </table> |
|
393 <a NAME="HistoryMostVisitedMenu.__init__" ID="HistoryMostVisitedMenu.__init__"></a> |
|
394 <h4>HistoryMostVisitedMenu (Constructor)</h4> |
|
395 <b>HistoryMostVisitedMenu</b>(<i>count, parent=None</i>) |
|
396 <p> |
|
397 Constructor |
|
398 </p><dl> |
|
399 <dt><i>count</i></dt> |
|
400 <dd> |
|
401 maximum number of entries to be shown (integer) |
|
402 </dd><dt><i>parent</i></dt> |
|
403 <dd> |
|
404 reference to the parent widget (QWidget) |
|
405 </dd> |
|
406 </dl><a NAME="HistoryMostVisitedMenu.__activated" ID="HistoryMostVisitedMenu.__activated"></a> |
|
407 <h4>HistoryMostVisitedMenu.__activated</h4> |
|
408 <b>__activated</b>(<i>idx</i>) |
|
409 <p> |
|
410 Private slot handling the activated signal. |
|
411 </p><dl> |
|
412 <dt><i>idx</i></dt> |
|
413 <dd> |
|
414 index of the activated item (QModelIndex) |
|
415 </dd> |
|
416 </dl><a NAME="HistoryMostVisitedMenu.prePopulated" ID="HistoryMostVisitedMenu.prePopulated"></a> |
|
417 <h4>HistoryMostVisitedMenu.prePopulated</h4> |
|
418 <b>prePopulated</b>(<i></i>) |
|
419 <p> |
|
420 Public method to add any actions before the tree. |
|
421 </p><dl> |
|
422 <dt>Returns:</dt> |
|
423 <dd> |
|
424 flag indicating if any actions were added (boolean) |
|
425 </dd> |
|
426 </dl> |
|
427 <div align="right"><a href="#top">Up</a></div> |
|
428 <hr /><hr /> |
|
429 <a NAME="HistoryMostVisitedMenuModel" ID="HistoryMostVisitedMenuModel"></a> |
|
430 <h2>HistoryMostVisitedMenuModel</h2> |
|
431 <p> |
|
432 Class implementing a model to show the most visited history entries. |
|
433 </p> |
|
434 <h3>Derived from</h3> |
|
435 QSortFilterProxyModel |
|
436 <h3>Class Attributes</h3> |
|
437 <table> |
|
438 <tr><td>None</td></tr> |
|
439 </table> |
|
440 <h3>Class Methods</h3> |
|
441 <table> |
|
442 <tr><td>None</td></tr> |
|
443 </table> |
|
444 <h3>Methods</h3> |
|
445 <table> |
|
446 <tr> |
|
447 <td><a href="#HistoryMostVisitedMenuModel.__init__">HistoryMostVisitedMenuModel</a></td> |
|
448 <td>Constructor</td> |
|
449 </tr><tr> |
|
450 <td><a href="#HistoryMostVisitedMenuModel.lessThan">lessThan</a></td> |
|
451 <td>Protected method used to sort the displayed items.</td> |
|
452 </tr> |
|
453 </table> |
|
454 <h3>Static Methods</h3> |
|
455 <table> |
|
456 <tr><td>None</td></tr> |
|
457 </table> |
|
458 <a NAME="HistoryMostVisitedMenuModel.__init__" ID="HistoryMostVisitedMenuModel.__init__"></a> |
|
459 <h4>HistoryMostVisitedMenuModel (Constructor)</h4> |
|
460 <b>HistoryMostVisitedMenuModel</b>(<i>sourceModel, parent=None</i>) |
|
461 <p> |
|
462 Constructor |
|
463 </p><dl> |
|
464 <dt><i>sourceModel</i></dt> |
|
465 <dd> |
|
466 reference to the source model (QAbstractItemModel) |
|
467 </dd><dt><i>parent</i></dt> |
|
468 <dd> |
|
469 reference to the parent object (QObject) |
|
470 </dd> |
|
471 </dl><a NAME="HistoryMostVisitedMenuModel.lessThan" ID="HistoryMostVisitedMenuModel.lessThan"></a> |
|
472 <h4>HistoryMostVisitedMenuModel.lessThan</h4> |
|
473 <b>lessThan</b>(<i>left, right</i>) |
|
474 <p> |
|
475 Protected method used to sort the displayed items. |
|
476 </p><dl> |
|
477 <dt><i>left</i></dt> |
|
478 <dd> |
|
479 index of left item (QModelIndex) |
|
480 </dd><dt><i>right</i></dt> |
|
481 <dd> |
|
482 index of right item (QModelIndex) |
|
483 </dd> |
|
484 </dl><dl> |
|
485 <dt>Returns:</dt> |
|
486 <dd> |
|
487 true, if left is less than right (boolean) |
|
488 </dd> |
|
489 </dl> |
|
490 <div align="right"><a href="#top">Up</a></div> |
345 <hr /> |
491 <hr /> |
346 </body></html> |
492 </body></html> |