src/eric7/Documentation/Source/eric7.WebBrowser.History.HistoryMenu.html

branch
eric7
changeset 10479
856476537696
parent 10436
f6881d10e995
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.WebBrowser.History.HistoryMenu</h1> 9 <h1>eric7.WebBrowser.History.HistoryMenu</h1>
10
11 <p> 10 <p>
12 Module implementing the history menu. 11 Module implementing the history menu.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15 15 <table>
16 <table> 16 <tr><td>None</td></tr>
17 <tr><td>None</td></tr> 17 </table>
18 </table> 18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20 20 <table>
21 <table>
22
23 <tr> 21 <tr>
24 <td><a href="#HistoryMenu">HistoryMenu</a></td> 22 <td><a href="#HistoryMenu">HistoryMenu</a></td>
25 <td>Class implementing the history menu.</td> 23 <td>Class implementing the history menu.</td>
26 </tr> 24 </tr>
27 <tr> 25 <tr>
35 <tr> 33 <tr>
36 <td><a href="#HistoryMostVisitedMenuModel">HistoryMostVisitedMenuModel</a></td> 34 <td><a href="#HistoryMostVisitedMenuModel">HistoryMostVisitedMenuModel</a></td>
37 <td>Class implementing a model to show the most visited history entries.</td> 35 <td>Class implementing a model to show the most visited history entries.</td>
38 </tr> 36 </tr>
39 </table> 37 </table>
38
40 <h3>Functions</h3> 39 <h3>Functions</h3>
41 40 <table>
42 <table> 41 <tr><td>None</td></tr>
43 <tr><td>None</td></tr> 42 </table>
44 </table> 43
45 <hr /> 44 <hr />
46 <hr /> 45 <hr />
47 <a NAME="HistoryMenu" ID="HistoryMenu"></a> 46 <a NAME="HistoryMenu" ID="HistoryMenu"></a>
48 <h2>HistoryMenu</h2> 47 <h2>HistoryMenu</h2>
49
50 <p> 48 <p>
51 Class implementing the history menu. 49 Class implementing the history menu.
52 </p> 50 </p>
51
53 <h3>Signals</h3> 52 <h3>Signals</h3>
54 <dl> 53 <dl>
55 54
56 <dt>newBackgroundTab(QUrl, str)</dt> 55 <dt>newBackgroundTab(QUrl, str)</dt>
57 <dd> 56 <dd>
77 </dd> 76 </dd>
78 </dl> 77 </dl>
79 <h3>Derived from</h3> 78 <h3>Derived from</h3>
80 EricModelMenu 79 EricModelMenu
81 <h3>Class Attributes</h3> 80 <h3>Class Attributes</h3>
82 81 <table>
83 <table> 82 <tr><td>None</td></tr>
84 <tr><td>None</td></tr> 83 </table>
85 </table> 84
86 <h3>Class Methods</h3> 85 <h3>Class Methods</h3>
87 86 <table>
88 <table> 87 <tr><td>None</td></tr>
89 <tr><td>None</td></tr> 88 </table>
90 </table> 89
91 <h3>Methods</h3> 90 <h3>Methods</h3>
92 91 <table>
93 <table>
94
95 <tr> 92 <tr>
96 <td><a href="#HistoryMenu.__init__">HistoryMenu</a></td> 93 <td><a href="#HistoryMenu.__init__">HistoryMenu</a></td>
97 <td>Constructor</td> 94 <td>Constructor</td>
98 </tr> 95 </tr>
99 <tr> 96 <tr>
127 <tr> 124 <tr>
128 <td><a href="#HistoryMenu.showHistoryDialog">showHistoryDialog</a></td> 125 <td><a href="#HistoryMenu.showHistoryDialog">showHistoryDialog</a></td>
129 <td>Public slot to show the history dialog.</td> 126 <td>Public slot to show the history dialog.</td>
130 </tr> 127 </tr>
131 </table> 128 </table>
129
132 <h3>Static Methods</h3> 130 <h3>Static Methods</h3>
133 131 <table>
134 <table> 132 <tr><td>None</td></tr>
135 <tr><td>None</td></tr> 133 </table>
136 </table> 134
137 135
138 <a NAME="HistoryMenu.__init__" ID="HistoryMenu.__init__"></a> 136 <a NAME="HistoryMenu.__init__" ID="HistoryMenu.__init__"></a>
139 <h4>HistoryMenu (Constructor)</h4> 137 <h4>HistoryMenu (Constructor)</h4>
140 <b>HistoryMenu</b>(<i>parent=None, tabWidget=None</i>) 138 <b>HistoryMenu</b>(<i>parent=None, tabWidget=None</i>)
141
142 <p> 139 <p>
143 Constructor 140 Constructor
144 </p> 141 </p>
142
145 <dl> 143 <dl>
146 144
147 <dt><i>parent</i> (QWidget)</dt> 145 <dt><i>parent</i> (QWidget)</dt>
148 <dd> 146 <dd>
149 reference to the parent widget 147 reference to the parent widget
155 </dd> 153 </dd>
156 </dl> 154 </dl>
157 <a NAME="HistoryMenu.__aboutToShowClosedTabsMenu" ID="HistoryMenu.__aboutToShowClosedTabsMenu"></a> 155 <a NAME="HistoryMenu.__aboutToShowClosedTabsMenu" ID="HistoryMenu.__aboutToShowClosedTabsMenu"></a>
158 <h4>HistoryMenu.__aboutToShowClosedTabsMenu</h4> 156 <h4>HistoryMenu.__aboutToShowClosedTabsMenu</h4>
159 <b>__aboutToShowClosedTabsMenu</b>(<i></i>) 157 <b>__aboutToShowClosedTabsMenu</b>(<i></i>)
160
161 <p> 158 <p>
162 Private slot to populate the closed tabs menu. 159 Private slot to populate the closed tabs menu.
163 </p> 160 </p>
161
164 <a NAME="HistoryMenu.__activated" ID="HistoryMenu.__activated"></a> 162 <a NAME="HistoryMenu.__activated" ID="HistoryMenu.__activated"></a>
165 <h4>HistoryMenu.__activated</h4> 163 <h4>HistoryMenu.__activated</h4>
166 <b>__activated</b>(<i>idx</i>) 164 <b>__activated</b>(<i>idx</i>)
167
168 <p> 165 <p>
169 Private slot handling the activated signal. 166 Private slot handling the activated signal.
170 </p> 167 </p>
168
171 <dl> 169 <dl>
172 170
173 <dt><i>idx</i> (QModelIndex)</dt> 171 <dt><i>idx</i> (QModelIndex)</dt>
174 <dd> 172 <dd>
175 index of the activated item 173 index of the activated item
176 </dd> 174 </dd>
177 </dl> 175 </dl>
178 <a NAME="HistoryMenu.__clearHistoryDialog" ID="HistoryMenu.__clearHistoryDialog"></a> 176 <a NAME="HistoryMenu.__clearHistoryDialog" ID="HistoryMenu.__clearHistoryDialog"></a>
179 <h4>HistoryMenu.__clearHistoryDialog</h4> 177 <h4>HistoryMenu.__clearHistoryDialog</h4>
180 <b>__clearHistoryDialog</b>(<i></i>) 178 <b>__clearHistoryDialog</b>(<i></i>)
181
182 <p> 179 <p>
183 Private slot to clear the history. 180 Private slot to clear the history.
184 </p> 181 </p>
182
185 <a NAME="HistoryMenu.__closedTabAvailable" ID="HistoryMenu.__closedTabAvailable"></a> 183 <a NAME="HistoryMenu.__closedTabAvailable" ID="HistoryMenu.__closedTabAvailable"></a>
186 <h4>HistoryMenu.__closedTabAvailable</h4> 184 <h4>HistoryMenu.__closedTabAvailable</h4>
187 <b>__closedTabAvailable</b>(<i>avail</i>) 185 <b>__closedTabAvailable</b>(<i>avail</i>)
188
189 <p> 186 <p>
190 Private slot to handle changes of the availability of closed tabs. 187 Private slot to handle changes of the availability of closed tabs.
191 </p> 188 </p>
189
192 <dl> 190 <dl>
193 191
194 <dt><i>avail</i> (bool)</dt> 192 <dt><i>avail</i> (bool)</dt>
195 <dd> 193 <dd>
196 flag indicating the availability of closed tabs 194 flag indicating the availability of closed tabs
197 </dd> 195 </dd>
198 </dl> 196 </dl>
199 <a NAME="HistoryMenu.postPopulated" ID="HistoryMenu.postPopulated"></a> 197 <a NAME="HistoryMenu.postPopulated" ID="HistoryMenu.postPopulated"></a>
200 <h4>HistoryMenu.postPopulated</h4> 198 <h4>HistoryMenu.postPopulated</h4>
201 <b>postPopulated</b>(<i></i>) 199 <b>postPopulated</b>(<i></i>)
202
203 <p> 200 <p>
204 Public method to add any actions after the tree. 201 Public method to add any actions after the tree.
205 </p> 202 </p>
203
206 <a NAME="HistoryMenu.prePopulated" ID="HistoryMenu.prePopulated"></a> 204 <a NAME="HistoryMenu.prePopulated" ID="HistoryMenu.prePopulated"></a>
207 <h4>HistoryMenu.prePopulated</h4> 205 <h4>HistoryMenu.prePopulated</h4>
208 <b>prePopulated</b>(<i></i>) 206 <b>prePopulated</b>(<i></i>)
209
210 <p> 207 <p>
211 Public method to add any actions before the tree. 208 Public method to add any actions before the tree.
212 </p> 209 </p>
210
213 <dl> 211 <dl>
214 <dt>Return:</dt> 212 <dt>Return:</dt>
215 <dd> 213 <dd>
216 flag indicating if any actions were added 214 flag indicating if any actions were added
217 </dd> 215 </dd>
223 </dd> 221 </dd>
224 </dl> 222 </dl>
225 <a NAME="HistoryMenu.setInitialActions" ID="HistoryMenu.setInitialActions"></a> 223 <a NAME="HistoryMenu.setInitialActions" ID="HistoryMenu.setInitialActions"></a>
226 <h4>HistoryMenu.setInitialActions</h4> 224 <h4>HistoryMenu.setInitialActions</h4>
227 <b>setInitialActions</b>(<i>actions</i>) 225 <b>setInitialActions</b>(<i>actions</i>)
228
229 <p> 226 <p>
230 Public method to set the list of actions that should appear first in 227 Public method to set the list of actions that should appear first in
231 the menu. 228 the menu.
232 </p> 229 </p>
230
233 <dl> 231 <dl>
234 232
235 <dt><i>actions</i> (list of QAction)</dt> 233 <dt><i>actions</i> (list of QAction)</dt>
236 <dd> 234 <dd>
237 list of initial actions 235 list of initial actions
238 </dd> 236 </dd>
239 </dl> 237 </dl>
240 <a NAME="HistoryMenu.showHistoryDialog" ID="HistoryMenu.showHistoryDialog"></a> 238 <a NAME="HistoryMenu.showHistoryDialog" ID="HistoryMenu.showHistoryDialog"></a>
241 <h4>HistoryMenu.showHistoryDialog</h4> 239 <h4>HistoryMenu.showHistoryDialog</h4>
242 <b>showHistoryDialog</b>(<i></i>) 240 <b>showHistoryDialog</b>(<i></i>)
243
244 <p> 241 <p>
245 Public slot to show the history dialog. 242 Public slot to show the history dialog.
246 </p> 243 </p>
244
247 <div align="right"><a href="#top">Up</a></div> 245 <div align="right"><a href="#top">Up</a></div>
248 <hr /> 246 <hr />
249 <hr /> 247 <hr />
250 <a NAME="HistoryMenuModel" ID="HistoryMenuModel"></a> 248 <a NAME="HistoryMenuModel" ID="HistoryMenuModel"></a>
251 <h2>HistoryMenuModel</h2> 249 <h2>HistoryMenuModel</h2>
252
253 <p> 250 <p>
254 Class implementing a model for the history menu. 251 Class implementing a model for the history menu.
255 </p> 252 </p>
256 <p> 253 <p>
257 It maps the first bunch of items of the source model to the root. 254 It maps the first bunch of items of the source model to the root.
258 </p> 255 </p>
256
259 <h3>Derived from</h3> 257 <h3>Derived from</h3>
260 QAbstractProxyModel 258 QAbstractProxyModel
261 <h3>Class Attributes</h3> 259 <h3>Class Attributes</h3>
262
263 <table> 260 <table>
264 <tr><td>MOVEDROWS</td></tr> 261 <tr><td>MOVEDROWS</td></tr>
265 </table> 262 </table>
263
266 <h3>Class Methods</h3> 264 <h3>Class Methods</h3>
267 265 <table>
268 <table> 266 <tr><td>None</td></tr>
269 <tr><td>None</td></tr> 267 </table>
270 </table> 268
271 <h3>Methods</h3> 269 <h3>Methods</h3>
272 270 <table>
273 <table>
274
275 <tr> 271 <tr>
276 <td><a href="#HistoryMenuModel.__init__">HistoryMenuModel</a></td> 272 <td><a href="#HistoryMenuModel.__init__">HistoryMenuModel</a></td>
277 <td>Constructor</td> 273 <td>Constructor</td>
278 </tr> 274 </tr>
279 <tr> 275 <tr>
307 <tr> 303 <tr>
308 <td><a href="#HistoryMenuModel.rowCount">rowCount</a></td> 304 <td><a href="#HistoryMenuModel.rowCount">rowCount</a></td>
309 <td>Public method to determine the number of rows.</td> 305 <td>Public method to determine the number of rows.</td>
310 </tr> 306 </tr>
311 </table> 307 </table>
308
312 <h3>Static Methods</h3> 309 <h3>Static Methods</h3>
313 310 <table>
314 <table> 311 <tr><td>None</td></tr>
315 <tr><td>None</td></tr> 312 </table>
316 </table> 313
317 314
318 <a NAME="HistoryMenuModel.__init__" ID="HistoryMenuModel.__init__"></a> 315 <a NAME="HistoryMenuModel.__init__" ID="HistoryMenuModel.__init__"></a>
319 <h4>HistoryMenuModel (Constructor)</h4> 316 <h4>HistoryMenuModel (Constructor)</h4>
320 <b>HistoryMenuModel</b>(<i>sourceModel, parent=None</i>) 317 <b>HistoryMenuModel</b>(<i>sourceModel, parent=None</i>)
321
322 <p> 318 <p>
323 Constructor 319 Constructor
324 </p> 320 </p>
321
325 <dl> 322 <dl>
326 323
327 <dt><i>sourceModel</i> (QAbstractItemModel)</dt> 324 <dt><i>sourceModel</i> (QAbstractItemModel)</dt>
328 <dd> 325 <dd>
329 reference to the source model 326 reference to the source model
334 </dd> 331 </dd>
335 </dl> 332 </dl>
336 <a NAME="HistoryMenuModel.bumpedRows" ID="HistoryMenuModel.bumpedRows"></a> 333 <a NAME="HistoryMenuModel.bumpedRows" ID="HistoryMenuModel.bumpedRows"></a>
337 <h4>HistoryMenuModel.bumpedRows</h4> 334 <h4>HistoryMenuModel.bumpedRows</h4>
338 <b>bumpedRows</b>(<i></i>) 335 <b>bumpedRows</b>(<i></i>)
339
340 <p> 336 <p>
341 Public method to determine the number of rows moved to the root. 337 Public method to determine the number of rows moved to the root.
342 </p> 338 </p>
339
343 <dl> 340 <dl>
344 <dt>Return:</dt> 341 <dt>Return:</dt>
345 <dd> 342 <dd>
346 number of rows moved to the root 343 number of rows moved to the root
347 </dd> 344 </dd>
353 </dd> 350 </dd>
354 </dl> 351 </dl>
355 <a NAME="HistoryMenuModel.columnCount" ID="HistoryMenuModel.columnCount"></a> 352 <a NAME="HistoryMenuModel.columnCount" ID="HistoryMenuModel.columnCount"></a>
356 <h4>HistoryMenuModel.columnCount</h4> 353 <h4>HistoryMenuModel.columnCount</h4>
357 <b>columnCount</b>(<i>parent=None</i>) 354 <b>columnCount</b>(<i>parent=None</i>)
358
359 <p> 355 <p>
360 Public method to get the number of columns. 356 Public method to get the number of columns.
361 </p> 357 </p>
358
362 <dl> 359 <dl>
363 360
364 <dt><i>parent</i> (QModelIndex)</dt> 361 <dt><i>parent</i> (QModelIndex)</dt>
365 <dd> 362 <dd>
366 index of parent 363 index of parent
379 </dd> 376 </dd>
380 </dl> 377 </dl>
381 <a NAME="HistoryMenuModel.index" ID="HistoryMenuModel.index"></a> 378 <a NAME="HistoryMenuModel.index" ID="HistoryMenuModel.index"></a>
382 <h4>HistoryMenuModel.index</h4> 379 <h4>HistoryMenuModel.index</h4>
383 <b>index</b>(<i>row, column, parent=None</i>) 380 <b>index</b>(<i>row, column, parent=None</i>)
384
385 <p> 381 <p>
386 Public method to create an index. 382 Public method to create an index.
387 </p> 383 </p>
384
388 <dl> 385 <dl>
389 386
390 <dt><i>row</i> (int)</dt> 387 <dt><i>row</i> (int)</dt>
391 <dd> 388 <dd>
392 row number for the index 389 row number for the index
413 </dd> 410 </dd>
414 </dl> 411 </dl>
415 <a NAME="HistoryMenuModel.mapFromSource" ID="HistoryMenuModel.mapFromSource"></a> 412 <a NAME="HistoryMenuModel.mapFromSource" ID="HistoryMenuModel.mapFromSource"></a>
416 <h4>HistoryMenuModel.mapFromSource</h4> 413 <h4>HistoryMenuModel.mapFromSource</h4>
417 <b>mapFromSource</b>(<i>sourceIndex</i>) 414 <b>mapFromSource</b>(<i>sourceIndex</i>)
418
419 <p> 415 <p>
420 Public method to map an index to the proxy model index. 416 Public method to map an index to the proxy model index.
421 </p> 417 </p>
418
422 <dl> 419 <dl>
423 420
424 <dt><i>sourceIndex</i> (QModelIndex)</dt> 421 <dt><i>sourceIndex</i> (QModelIndex)</dt>
425 <dd> 422 <dd>
426 reference to a source model index 423 reference to a source model index
439 </dd> 436 </dd>
440 </dl> 437 </dl>
441 <a NAME="HistoryMenuModel.mapToSource" ID="HistoryMenuModel.mapToSource"></a> 438 <a NAME="HistoryMenuModel.mapToSource" ID="HistoryMenuModel.mapToSource"></a>
442 <h4>HistoryMenuModel.mapToSource</h4> 439 <h4>HistoryMenuModel.mapToSource</h4>
443 <b>mapToSource</b>(<i>proxyIndex</i>) 440 <b>mapToSource</b>(<i>proxyIndex</i>)
444
445 <p> 441 <p>
446 Public method to map an index to the source model index. 442 Public method to map an index to the source model index.
447 </p> 443 </p>
444
448 <dl> 445 <dl>
449 446
450 <dt><i>proxyIndex</i> (QModelIndex)</dt> 447 <dt><i>proxyIndex</i> (QModelIndex)</dt>
451 <dd> 448 <dd>
452 reference to a proxy model index 449 reference to a proxy model index
465 </dd> 462 </dd>
466 </dl> 463 </dl>
467 <a NAME="HistoryMenuModel.mimeData" ID="HistoryMenuModel.mimeData"></a> 464 <a NAME="HistoryMenuModel.mimeData" ID="HistoryMenuModel.mimeData"></a>
468 <h4>HistoryMenuModel.mimeData</h4> 465 <h4>HistoryMenuModel.mimeData</h4>
469 <b>mimeData</b>(<i>indexes</i>) 466 <b>mimeData</b>(<i>indexes</i>)
470
471 <p> 467 <p>
472 Public method to return the mime data. 468 Public method to return the mime data.
473 </p> 469 </p>
470
474 <dl> 471 <dl>
475 472
476 <dt><i>indexes</i> (QModelIndexList)</dt> 473 <dt><i>indexes</i> (QModelIndexList)</dt>
477 <dd> 474 <dd>
478 list of indexes 475 list of indexes
491 </dd> 488 </dd>
492 </dl> 489 </dl>
493 <a NAME="HistoryMenuModel.parent" ID="HistoryMenuModel.parent"></a> 490 <a NAME="HistoryMenuModel.parent" ID="HistoryMenuModel.parent"></a>
494 <h4>HistoryMenuModel.parent</h4> 491 <h4>HistoryMenuModel.parent</h4>
495 <b>parent</b>(<i>index</i>) 492 <b>parent</b>(<i>index</i>)
496
497 <p> 493 <p>
498 Public method to get the parent index. 494 Public method to get the parent index.
499 </p> 495 </p>
496
500 <dl> 497 <dl>
501 498
502 <dt><i>index</i> (QModelIndex)</dt> 499 <dt><i>index</i> (QModelIndex)</dt>
503 <dd> 500 <dd>
504 index of item to get parent 501 index of item to get parent
517 </dd> 514 </dd>
518 </dl> 515 </dl>
519 <a NAME="HistoryMenuModel.rowCount" ID="HistoryMenuModel.rowCount"></a> 516 <a NAME="HistoryMenuModel.rowCount" ID="HistoryMenuModel.rowCount"></a>
520 <h4>HistoryMenuModel.rowCount</h4> 517 <h4>HistoryMenuModel.rowCount</h4>
521 <b>rowCount</b>(<i>parent=None</i>) 518 <b>rowCount</b>(<i>parent=None</i>)
522
523 <p> 519 <p>
524 Public method to determine the number of rows. 520 Public method to determine the number of rows.
525 </p> 521 </p>
522
526 <dl> 523 <dl>
527 524
528 <dt><i>parent</i> (QModelIndex)</dt> 525 <dt><i>parent</i> (QModelIndex)</dt>
529 <dd> 526 <dd>
530 index of parent 527 index of parent
545 <div align="right"><a href="#top">Up</a></div> 542 <div align="right"><a href="#top">Up</a></div>
546 <hr /> 543 <hr />
547 <hr /> 544 <hr />
548 <a NAME="HistoryMostVisitedMenu" ID="HistoryMostVisitedMenu"></a> 545 <a NAME="HistoryMostVisitedMenu" ID="HistoryMostVisitedMenu"></a>
549 <h2>HistoryMostVisitedMenu</h2> 546 <h2>HistoryMostVisitedMenu</h2>
550
551 <p> 547 <p>
552 Class implementing the most visited history menu. 548 Class implementing the most visited history menu.
553 </p> 549 </p>
550
554 <h3>Signals</h3> 551 <h3>Signals</h3>
555 <dl> 552 <dl>
556 553
557 <dt>newBackgroundTab(QUrl, str)</dt> 554 <dt>newBackgroundTab(QUrl, str)</dt>
558 <dd> 555 <dd>
578 </dd> 575 </dd>
579 </dl> 576 </dl>
580 <h3>Derived from</h3> 577 <h3>Derived from</h3>
581 EricModelMenu 578 EricModelMenu
582 <h3>Class Attributes</h3> 579 <h3>Class Attributes</h3>
583 580 <table>
584 <table> 581 <tr><td>None</td></tr>
585 <tr><td>None</td></tr> 582 </table>
586 </table> 583
587 <h3>Class Methods</h3> 584 <h3>Class Methods</h3>
588 585 <table>
589 <table> 586 <tr><td>None</td></tr>
590 <tr><td>None</td></tr> 587 </table>
591 </table> 588
592 <h3>Methods</h3> 589 <h3>Methods</h3>
593 590 <table>
594 <table>
595
596 <tr> 591 <tr>
597 <td><a href="#HistoryMostVisitedMenu.__init__">HistoryMostVisitedMenu</a></td> 592 <td><a href="#HistoryMostVisitedMenu.__init__">HistoryMostVisitedMenu</a></td>
598 <td>Constructor</td> 593 <td>Constructor</td>
599 </tr> 594 </tr>
600 <tr> 595 <tr>
604 <tr> 599 <tr>
605 <td><a href="#HistoryMostVisitedMenu.prePopulated">prePopulated</a></td> 600 <td><a href="#HistoryMostVisitedMenu.prePopulated">prePopulated</a></td>
606 <td>Public method to add any actions before the tree.</td> 601 <td>Public method to add any actions before the tree.</td>
607 </tr> 602 </tr>
608 </table> 603 </table>
604
609 <h3>Static Methods</h3> 605 <h3>Static Methods</h3>
610 606 <table>
611 <table> 607 <tr><td>None</td></tr>
612 <tr><td>None</td></tr> 608 </table>
613 </table> 609
614 610
615 <a NAME="HistoryMostVisitedMenu.__init__" ID="HistoryMostVisitedMenu.__init__"></a> 611 <a NAME="HistoryMostVisitedMenu.__init__" ID="HistoryMostVisitedMenu.__init__"></a>
616 <h4>HistoryMostVisitedMenu (Constructor)</h4> 612 <h4>HistoryMostVisitedMenu (Constructor)</h4>
617 <b>HistoryMostVisitedMenu</b>(<i>count, parent=None</i>) 613 <b>HistoryMostVisitedMenu</b>(<i>count, parent=None</i>)
618
619 <p> 614 <p>
620 Constructor 615 Constructor
621 </p> 616 </p>
617
622 <dl> 618 <dl>
623 619
624 <dt><i>count</i> (int)</dt> 620 <dt><i>count</i> (int)</dt>
625 <dd> 621 <dd>
626 maximum number of entries to be shown 622 maximum number of entries to be shown
631 </dd> 627 </dd>
632 </dl> 628 </dl>
633 <a NAME="HistoryMostVisitedMenu.__activated" ID="HistoryMostVisitedMenu.__activated"></a> 629 <a NAME="HistoryMostVisitedMenu.__activated" ID="HistoryMostVisitedMenu.__activated"></a>
634 <h4>HistoryMostVisitedMenu.__activated</h4> 630 <h4>HistoryMostVisitedMenu.__activated</h4>
635 <b>__activated</b>(<i>idx</i>) 631 <b>__activated</b>(<i>idx</i>)
636
637 <p> 632 <p>
638 Private slot handling the activated signal. 633 Private slot handling the activated signal.
639 </p> 634 </p>
635
640 <dl> 636 <dl>
641 637
642 <dt><i>idx</i> (QModelIndex)</dt> 638 <dt><i>idx</i> (QModelIndex)</dt>
643 <dd> 639 <dd>
644 index of the activated item 640 index of the activated item
645 </dd> 641 </dd>
646 </dl> 642 </dl>
647 <a NAME="HistoryMostVisitedMenu.prePopulated" ID="HistoryMostVisitedMenu.prePopulated"></a> 643 <a NAME="HistoryMostVisitedMenu.prePopulated" ID="HistoryMostVisitedMenu.prePopulated"></a>
648 <h4>HistoryMostVisitedMenu.prePopulated</h4> 644 <h4>HistoryMostVisitedMenu.prePopulated</h4>
649 <b>prePopulated</b>(<i></i>) 645 <b>prePopulated</b>(<i></i>)
650
651 <p> 646 <p>
652 Public method to add any actions before the tree. 647 Public method to add any actions before the tree.
653 </p> 648 </p>
649
654 <dl> 650 <dl>
655 <dt>Return:</dt> 651 <dt>Return:</dt>
656 <dd> 652 <dd>
657 flag indicating if any actions were added 653 flag indicating if any actions were added
658 </dd> 654 </dd>
666 <div align="right"><a href="#top">Up</a></div> 662 <div align="right"><a href="#top">Up</a></div>
667 <hr /> 663 <hr />
668 <hr /> 664 <hr />
669 <a NAME="HistoryMostVisitedMenuModel" ID="HistoryMostVisitedMenuModel"></a> 665 <a NAME="HistoryMostVisitedMenuModel" ID="HistoryMostVisitedMenuModel"></a>
670 <h2>HistoryMostVisitedMenuModel</h2> 666 <h2>HistoryMostVisitedMenuModel</h2>
671
672 <p> 667 <p>
673 Class implementing a model to show the most visited history entries. 668 Class implementing a model to show the most visited history entries.
674 </p> 669 </p>
670
675 <h3>Derived from</h3> 671 <h3>Derived from</h3>
676 QSortFilterProxyModel 672 QSortFilterProxyModel
677 <h3>Class Attributes</h3> 673 <h3>Class Attributes</h3>
678 674 <table>
679 <table> 675 <tr><td>None</td></tr>
680 <tr><td>None</td></tr> 676 </table>
681 </table> 677
682 <h3>Class Methods</h3> 678 <h3>Class Methods</h3>
683 679 <table>
684 <table> 680 <tr><td>None</td></tr>
685 <tr><td>None</td></tr> 681 </table>
686 </table> 682
687 <h3>Methods</h3> 683 <h3>Methods</h3>
688 684 <table>
689 <table>
690
691 <tr> 685 <tr>
692 <td><a href="#HistoryMostVisitedMenuModel.__init__">HistoryMostVisitedMenuModel</a></td> 686 <td><a href="#HistoryMostVisitedMenuModel.__init__">HistoryMostVisitedMenuModel</a></td>
693 <td>Constructor</td> 687 <td>Constructor</td>
694 </tr> 688 </tr>
695 <tr> 689 <tr>
696 <td><a href="#HistoryMostVisitedMenuModel.lessThan">lessThan</a></td> 690 <td><a href="#HistoryMostVisitedMenuModel.lessThan">lessThan</a></td>
697 <td>Public method used to sort the displayed items.</td> 691 <td>Public method used to sort the displayed items.</td>
698 </tr> 692 </tr>
699 </table> 693 </table>
694
700 <h3>Static Methods</h3> 695 <h3>Static Methods</h3>
701 696 <table>
702 <table> 697 <tr><td>None</td></tr>
703 <tr><td>None</td></tr> 698 </table>
704 </table> 699
705 700
706 <a NAME="HistoryMostVisitedMenuModel.__init__" ID="HistoryMostVisitedMenuModel.__init__"></a> 701 <a NAME="HistoryMostVisitedMenuModel.__init__" ID="HistoryMostVisitedMenuModel.__init__"></a>
707 <h4>HistoryMostVisitedMenuModel (Constructor)</h4> 702 <h4>HistoryMostVisitedMenuModel (Constructor)</h4>
708 <b>HistoryMostVisitedMenuModel</b>(<i>sourceModel, parent=None</i>) 703 <b>HistoryMostVisitedMenuModel</b>(<i>sourceModel, parent=None</i>)
709
710 <p> 704 <p>
711 Constructor 705 Constructor
712 </p> 706 </p>
707
713 <dl> 708 <dl>
714 709
715 <dt><i>sourceModel</i> (QAbstractItemModel)</dt> 710 <dt><i>sourceModel</i> (QAbstractItemModel)</dt>
716 <dd> 711 <dd>
717 reference to the source model 712 reference to the source model
722 </dd> 717 </dd>
723 </dl> 718 </dl>
724 <a NAME="HistoryMostVisitedMenuModel.lessThan" ID="HistoryMostVisitedMenuModel.lessThan"></a> 719 <a NAME="HistoryMostVisitedMenuModel.lessThan" ID="HistoryMostVisitedMenuModel.lessThan"></a>
725 <h4>HistoryMostVisitedMenuModel.lessThan</h4> 720 <h4>HistoryMostVisitedMenuModel.lessThan</h4>
726 <b>lessThan</b>(<i>left, right</i>) 721 <b>lessThan</b>(<i>left, right</i>)
727
728 <p> 722 <p>
729 Public method used to sort the displayed items. 723 Public method used to sort the displayed items.
730 </p> 724 </p>
725
731 <dl> 726 <dl>
732 727
733 <dt><i>left</i> (QModelIndex)</dt> 728 <dt><i>left</i> (QModelIndex)</dt>
734 <dd> 729 <dd>
735 index of left item 730 index of left item

eric ide

mercurial