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.HistoryMenu</h1> |
23 <h1>eric6.WebBrowser.History.HistoryMenu</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing the history menu. |
26 Module implementing the history menu. |
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="#HistoryMenu">HistoryMenu</a></td> |
38 <td><a href="#HistoryMenu">HistoryMenu</a></td> |
34 <td>Class implementing the history menu.</td> |
39 <td>Class implementing the history menu.</td> |
35 </tr><tr> |
40 </tr> |
|
41 <tr> |
36 <td><a href="#HistoryMenuModel">HistoryMenuModel</a></td> |
42 <td><a href="#HistoryMenuModel">HistoryMenuModel</a></td> |
37 <td>Class implementing a model for the history menu.</td> |
43 <td>Class implementing a model for the history menu.</td> |
38 </tr><tr> |
44 </tr> |
|
45 <tr> |
39 <td><a href="#HistoryMostVisitedMenu">HistoryMostVisitedMenu</a></td> |
46 <td><a href="#HistoryMostVisitedMenu">HistoryMostVisitedMenu</a></td> |
40 <td>Class implementing the most visited history menu.</td> |
47 <td>Class implementing the most visited history menu.</td> |
41 </tr><tr> |
48 </tr> |
|
49 <tr> |
42 <td><a href="#HistoryMostVisitedMenuModel">HistoryMostVisitedMenuModel</a></td> |
50 <td><a href="#HistoryMostVisitedMenuModel">HistoryMostVisitedMenuModel</a></td> |
43 <td>Class implementing a model to show the most visited history entries.</td> |
51 <td>Class implementing a model to show the most visited history entries.</td> |
44 </tr> |
52 </tr> |
45 </table> |
53 </table> |
46 <h3>Functions</h3> |
54 <h3>Functions</h3> |
47 <table> |
55 |
48 <tr><td>None</td></tr> |
56 <table> |
49 </table> |
57 <tr><td>None</td></tr> |
50 <hr /><hr /> |
58 </table> |
|
59 <hr /> |
|
60 <hr /> |
51 <a NAME="HistoryMenu" ID="HistoryMenu"></a> |
61 <a NAME="HistoryMenu" ID="HistoryMenu"></a> |
52 <h2>HistoryMenu</h2> |
62 <h2>HistoryMenu</h2> |
|
63 |
53 <p> |
64 <p> |
54 Class implementing the history menu. |
65 Class implementing the history menu. |
55 </p><h3>Signals</h3> |
66 </p> |
56 <dl> |
67 <h3>Signals</h3> |
|
68 <dl> |
|
69 |
57 <dt>newBackgroundTab(QUrl, str)</dt> |
70 <dt>newBackgroundTab(QUrl, str)</dt> |
58 <dd> |
71 <dd> |
59 emitted to open a URL in a new |
72 emitted to open a URL in a new |
60 background tab |
73 background tab |
61 </dd><dt>newPrivateWindow(QUrl, str)</dt> |
74 </dd> |
|
75 <dt>newPrivateWindow(QUrl, str)</dt> |
62 <dd> |
76 <dd> |
63 emitted to open a URL in a new |
77 emitted to open a URL in a new |
64 private window |
78 private window |
65 </dd><dt>newTab(QUrl, str)</dt> |
79 </dd> |
|
80 <dt>newTab(QUrl, str)</dt> |
66 <dd> |
81 <dd> |
67 emitted to open a URL in a new tab |
82 emitted to open a URL in a new tab |
68 </dd><dt>newWindow(QUrl, str)</dt> |
83 </dd> |
|
84 <dt>newWindow(QUrl, str)</dt> |
69 <dd> |
85 <dd> |
70 emitted to open a URL in a new window |
86 emitted to open a URL in a new window |
71 </dd><dt>openUrl(QUrl, str)</dt> |
87 </dd> |
|
88 <dt>openUrl(QUrl, str)</dt> |
72 <dd> |
89 <dd> |
73 emitted to open a URL in the current tab |
90 emitted to open a URL in the current tab |
74 </dd> |
91 </dd> |
75 </dl> |
92 </dl> |
76 <h3>Derived from</h3> |
93 <h3>Derived from</h3> |
77 E5ModelMenu |
94 E5ModelMenu |
78 <h3>Class Attributes</h3> |
95 <h3>Class Attributes</h3> |
|
96 |
79 <table> |
97 <table> |
80 <tr><td>None</td></tr> |
98 <tr><td>None</td></tr> |
81 </table> |
99 </table> |
82 <h3>Class Methods</h3> |
100 <h3>Class Methods</h3> |
|
101 |
83 <table> |
102 <table> |
84 <tr><td>None</td></tr> |
103 <tr><td>None</td></tr> |
85 </table> |
104 </table> |
86 <h3>Methods</h3> |
105 <h3>Methods</h3> |
87 <table> |
106 |
|
107 <table> |
|
108 |
88 <tr> |
109 <tr> |
89 <td><a href="#HistoryMenu.__init__">HistoryMenu</a></td> |
110 <td><a href="#HistoryMenu.__init__">HistoryMenu</a></td> |
90 <td>Constructor</td> |
111 <td>Constructor</td> |
91 </tr><tr> |
112 </tr> |
|
113 <tr> |
92 <td><a href="#HistoryMenu.__aboutToShowClosedTabsMenu">__aboutToShowClosedTabsMenu</a></td> |
114 <td><a href="#HistoryMenu.__aboutToShowClosedTabsMenu">__aboutToShowClosedTabsMenu</a></td> |
93 <td>Private slot to populate the closed tabs menu.</td> |
115 <td>Private slot to populate the closed tabs menu.</td> |
94 </tr><tr> |
116 </tr> |
|
117 <tr> |
95 <td><a href="#HistoryMenu.__activated">__activated</a></td> |
118 <td><a href="#HistoryMenu.__activated">__activated</a></td> |
96 <td>Private slot handling the activated signal.</td> |
119 <td>Private slot handling the activated signal.</td> |
97 </tr><tr> |
120 </tr> |
|
121 <tr> |
98 <td><a href="#HistoryMenu.__clearHistoryDialog">__clearHistoryDialog</a></td> |
122 <td><a href="#HistoryMenu.__clearHistoryDialog">__clearHistoryDialog</a></td> |
99 <td>Private slot to clear the history.</td> |
123 <td>Private slot to clear the history.</td> |
100 </tr><tr> |
124 </tr> |
|
125 <tr> |
101 <td><a href="#HistoryMenu.__closedTabAvailable">__closedTabAvailable</a></td> |
126 <td><a href="#HistoryMenu.__closedTabAvailable">__closedTabAvailable</a></td> |
102 <td>Private slot to handle changes of the availability of closed tabs.</td> |
127 <td>Private slot to handle changes of the availability of closed tabs.</td> |
103 </tr><tr> |
128 </tr> |
|
129 <tr> |
104 <td><a href="#HistoryMenu.postPopulated">postPopulated</a></td> |
130 <td><a href="#HistoryMenu.postPopulated">postPopulated</a></td> |
105 <td>Public method to add any actions after the tree.</td> |
131 <td>Public method to add any actions after the tree.</td> |
106 </tr><tr> |
132 </tr> |
|
133 <tr> |
107 <td><a href="#HistoryMenu.prePopulated">prePopulated</a></td> |
134 <td><a href="#HistoryMenu.prePopulated">prePopulated</a></td> |
108 <td>Public method to add any actions before the tree.</td> |
135 <td>Public method to add any actions before the tree.</td> |
109 </tr><tr> |
136 </tr> |
|
137 <tr> |
110 <td><a href="#HistoryMenu.setInitialActions">setInitialActions</a></td> |
138 <td><a href="#HistoryMenu.setInitialActions">setInitialActions</a></td> |
111 <td>Public method to set the list of actions that should appear first in the menu.</td> |
139 <td>Public method to set the list of actions that should appear first in the menu.</td> |
112 </tr><tr> |
140 </tr> |
|
141 <tr> |
113 <td><a href="#HistoryMenu.showHistoryDialog">showHistoryDialog</a></td> |
142 <td><a href="#HistoryMenu.showHistoryDialog">showHistoryDialog</a></td> |
114 <td>Public slot to show the history dialog.</td> |
143 <td>Public slot to show the history dialog.</td> |
115 </tr> |
144 </tr> |
116 </table> |
145 </table> |
117 <h3>Static Methods</h3> |
146 <h3>Static Methods</h3> |
118 <table> |
147 |
119 <tr><td>None</td></tr> |
148 <table> |
120 </table> |
149 <tr><td>None</td></tr> |
|
150 </table> |
|
151 |
121 <a NAME="HistoryMenu.__init__" ID="HistoryMenu.__init__"></a> |
152 <a NAME="HistoryMenu.__init__" ID="HistoryMenu.__init__"></a> |
122 <h4>HistoryMenu (Constructor)</h4> |
153 <h4>HistoryMenu (Constructor)</h4> |
123 <b>HistoryMenu</b>(<i>parent=None, tabWidget=None</i>) |
154 <b>HistoryMenu</b>(<i>parent=None, tabWidget=None</i>) |
|
155 |
124 <p> |
156 <p> |
125 Constructor |
157 Constructor |
126 </p><dl> |
158 </p> |
|
159 <dl> |
|
160 |
127 <dt><i>parent</i></dt> |
161 <dt><i>parent</i></dt> |
128 <dd> |
162 <dd> |
129 reference to the parent widget (QWidget) |
163 reference to the parent widget (QWidget) |
130 </dd><dt><i>tabWidget</i></dt> |
164 </dd> |
|
165 <dt><i>tabWidget</i></dt> |
131 <dd> |
166 <dd> |
132 reference to the tab widget managing the browser |
167 reference to the tab widget managing the browser |
133 tabs (HelpTabWidget |
168 tabs (HelpTabWidget |
134 </dd> |
169 </dd> |
135 </dl><a NAME="HistoryMenu.__aboutToShowClosedTabsMenu" ID="HistoryMenu.__aboutToShowClosedTabsMenu"></a> |
170 </dl> |
|
171 <a NAME="HistoryMenu.__aboutToShowClosedTabsMenu" ID="HistoryMenu.__aboutToShowClosedTabsMenu"></a> |
136 <h4>HistoryMenu.__aboutToShowClosedTabsMenu</h4> |
172 <h4>HistoryMenu.__aboutToShowClosedTabsMenu</h4> |
137 <b>__aboutToShowClosedTabsMenu</b>(<i></i>) |
173 <b>__aboutToShowClosedTabsMenu</b>(<i></i>) |
|
174 |
138 <p> |
175 <p> |
139 Private slot to populate the closed tabs menu. |
176 Private slot to populate the closed tabs menu. |
140 </p><a NAME="HistoryMenu.__activated" ID="HistoryMenu.__activated"></a> |
177 </p> |
|
178 <a NAME="HistoryMenu.__activated" ID="HistoryMenu.__activated"></a> |
141 <h4>HistoryMenu.__activated</h4> |
179 <h4>HistoryMenu.__activated</h4> |
142 <b>__activated</b>(<i>idx</i>) |
180 <b>__activated</b>(<i>idx</i>) |
|
181 |
143 <p> |
182 <p> |
144 Private slot handling the activated signal. |
183 Private slot handling the activated signal. |
145 </p><dl> |
184 </p> |
|
185 <dl> |
|
186 |
146 <dt><i>idx</i></dt> |
187 <dt><i>idx</i></dt> |
147 <dd> |
188 <dd> |
148 index of the activated item (QModelIndex) |
189 index of the activated item (QModelIndex) |
149 </dd> |
190 </dd> |
150 </dl><a NAME="HistoryMenu.__clearHistoryDialog" ID="HistoryMenu.__clearHistoryDialog"></a> |
191 </dl> |
|
192 <a NAME="HistoryMenu.__clearHistoryDialog" ID="HistoryMenu.__clearHistoryDialog"></a> |
151 <h4>HistoryMenu.__clearHistoryDialog</h4> |
193 <h4>HistoryMenu.__clearHistoryDialog</h4> |
152 <b>__clearHistoryDialog</b>(<i></i>) |
194 <b>__clearHistoryDialog</b>(<i></i>) |
|
195 |
153 <p> |
196 <p> |
154 Private slot to clear the history. |
197 Private slot to clear the history. |
155 </p><a NAME="HistoryMenu.__closedTabAvailable" ID="HistoryMenu.__closedTabAvailable"></a> |
198 </p> |
|
199 <a NAME="HistoryMenu.__closedTabAvailable" ID="HistoryMenu.__closedTabAvailable"></a> |
156 <h4>HistoryMenu.__closedTabAvailable</h4> |
200 <h4>HistoryMenu.__closedTabAvailable</h4> |
157 <b>__closedTabAvailable</b>(<i>avail</i>) |
201 <b>__closedTabAvailable</b>(<i>avail</i>) |
|
202 |
158 <p> |
203 <p> |
159 Private slot to handle changes of the availability of closed tabs. |
204 Private slot to handle changes of the availability of closed tabs. |
160 </p><dl> |
205 </p> |
|
206 <dl> |
|
207 |
161 <dt><i>avail</i></dt> |
208 <dt><i>avail</i></dt> |
162 <dd> |
209 <dd> |
163 flag indicating the availability of closed tabs (boolean) |
210 flag indicating the availability of closed tabs (boolean) |
164 </dd> |
211 </dd> |
165 </dl><a NAME="HistoryMenu.postPopulated" ID="HistoryMenu.postPopulated"></a> |
212 </dl> |
|
213 <a NAME="HistoryMenu.postPopulated" ID="HistoryMenu.postPopulated"></a> |
166 <h4>HistoryMenu.postPopulated</h4> |
214 <h4>HistoryMenu.postPopulated</h4> |
167 <b>postPopulated</b>(<i></i>) |
215 <b>postPopulated</b>(<i></i>) |
|
216 |
168 <p> |
217 <p> |
169 Public method to add any actions after the tree. |
218 Public method to add any actions after the tree. |
170 </p><a NAME="HistoryMenu.prePopulated" ID="HistoryMenu.prePopulated"></a> |
219 </p> |
|
220 <a NAME="HistoryMenu.prePopulated" ID="HistoryMenu.prePopulated"></a> |
171 <h4>HistoryMenu.prePopulated</h4> |
221 <h4>HistoryMenu.prePopulated</h4> |
172 <b>prePopulated</b>(<i></i>) |
222 <b>prePopulated</b>(<i></i>) |
|
223 |
173 <p> |
224 <p> |
174 Public method to add any actions before the tree. |
225 Public method to add any actions before the tree. |
175 </p><dl> |
226 </p> |
|
227 <dl> |
176 <dt>Returns:</dt> |
228 <dt>Returns:</dt> |
177 <dd> |
229 <dd> |
178 flag indicating if any actions were added (boolean) |
230 flag indicating if any actions were added (boolean) |
179 </dd> |
231 </dd> |
180 </dl><a NAME="HistoryMenu.setInitialActions" ID="HistoryMenu.setInitialActions"></a> |
232 </dl> |
|
233 <a NAME="HistoryMenu.setInitialActions" ID="HistoryMenu.setInitialActions"></a> |
181 <h4>HistoryMenu.setInitialActions</h4> |
234 <h4>HistoryMenu.setInitialActions</h4> |
182 <b>setInitialActions</b>(<i>actions</i>) |
235 <b>setInitialActions</b>(<i>actions</i>) |
|
236 |
183 <p> |
237 <p> |
184 Public method to set the list of actions that should appear first in |
238 Public method to set the list of actions that should appear first in |
185 the menu. |
239 the menu. |
186 </p><dl> |
240 </p> |
|
241 <dl> |
|
242 |
187 <dt><i>actions</i></dt> |
243 <dt><i>actions</i></dt> |
188 <dd> |
244 <dd> |
189 list of initial actions (list of QAction) |
245 list of initial actions (list of QAction) |
190 </dd> |
246 </dd> |
191 </dl><a NAME="HistoryMenu.showHistoryDialog" ID="HistoryMenu.showHistoryDialog"></a> |
247 </dl> |
|
248 <a NAME="HistoryMenu.showHistoryDialog" ID="HistoryMenu.showHistoryDialog"></a> |
192 <h4>HistoryMenu.showHistoryDialog</h4> |
249 <h4>HistoryMenu.showHistoryDialog</h4> |
193 <b>showHistoryDialog</b>(<i></i>) |
250 <b>showHistoryDialog</b>(<i></i>) |
|
251 |
194 <p> |
252 <p> |
195 Public slot to show the history dialog. |
253 Public slot to show the history dialog. |
196 </p> |
254 </p> |
197 <div align="right"><a href="#top">Up</a></div> |
255 <div align="right"><a href="#top">Up</a></div> |
198 <hr /><hr /> |
256 <hr /> |
|
257 <hr /> |
199 <a NAME="HistoryMenuModel" ID="HistoryMenuModel"></a> |
258 <a NAME="HistoryMenuModel" ID="HistoryMenuModel"></a> |
200 <h2>HistoryMenuModel</h2> |
259 <h2>HistoryMenuModel</h2> |
|
260 |
201 <p> |
261 <p> |
202 Class implementing a model for the history menu. |
262 Class implementing a model for the history menu. |
203 </p><p> |
263 </p> |
|
264 <p> |
204 It maps the first bunch of items of the source model to the root. |
265 It maps the first bunch of items of the source model to the root. |
205 </p> |
266 </p> |
206 <h3>Derived from</h3> |
267 <h3>Derived from</h3> |
207 QAbstractProxyModel |
268 QAbstractProxyModel |
208 <h3>Class Attributes</h3> |
269 <h3>Class Attributes</h3> |
|
270 |
209 <table> |
271 <table> |
210 <tr><td>MOVEDROWS</td></tr> |
272 <tr><td>MOVEDROWS</td></tr> |
211 </table> |
273 </table> |
212 <h3>Class Methods</h3> |
274 <h3>Class Methods</h3> |
|
275 |
213 <table> |
276 <table> |
214 <tr><td>None</td></tr> |
277 <tr><td>None</td></tr> |
215 </table> |
278 </table> |
216 <h3>Methods</h3> |
279 <h3>Methods</h3> |
217 <table> |
280 |
|
281 <table> |
|
282 |
218 <tr> |
283 <tr> |
219 <td><a href="#HistoryMenuModel.__init__">HistoryMenuModel</a></td> |
284 <td><a href="#HistoryMenuModel.__init__">HistoryMenuModel</a></td> |
220 <td>Constructor</td> |
285 <td>Constructor</td> |
221 </tr><tr> |
286 </tr> |
|
287 <tr> |
222 <td><a href="#HistoryMenuModel.bumpedRows">bumpedRows</a></td> |
288 <td><a href="#HistoryMenuModel.bumpedRows">bumpedRows</a></td> |
223 <td>Public method to determine the number of rows moved to the root.</td> |
289 <td>Public method to determine the number of rows moved to the root.</td> |
224 </tr><tr> |
290 </tr> |
|
291 <tr> |
225 <td><a href="#HistoryMenuModel.columnCount">columnCount</a></td> |
292 <td><a href="#HistoryMenuModel.columnCount">columnCount</a></td> |
226 <td>Public method to get the number of columns.</td> |
293 <td>Public method to get the number of columns.</td> |
227 </tr><tr> |
294 </tr> |
|
295 <tr> |
228 <td><a href="#HistoryMenuModel.index">index</a></td> |
296 <td><a href="#HistoryMenuModel.index">index</a></td> |
229 <td>Public method to create an index.</td> |
297 <td>Public method to create an index.</td> |
230 </tr><tr> |
298 </tr> |
|
299 <tr> |
231 <td><a href="#HistoryMenuModel.mapFromSource">mapFromSource</a></td> |
300 <td><a href="#HistoryMenuModel.mapFromSource">mapFromSource</a></td> |
232 <td>Public method to map an index to the proxy model index.</td> |
301 <td>Public method to map an index to the proxy model index.</td> |
233 </tr><tr> |
302 </tr> |
|
303 <tr> |
234 <td><a href="#HistoryMenuModel.mapToSource">mapToSource</a></td> |
304 <td><a href="#HistoryMenuModel.mapToSource">mapToSource</a></td> |
235 <td>Public method to map an index to the source model index.</td> |
305 <td>Public method to map an index to the source model index.</td> |
236 </tr><tr> |
306 </tr> |
|
307 <tr> |
237 <td><a href="#HistoryMenuModel.mimeData">mimeData</a></td> |
308 <td><a href="#HistoryMenuModel.mimeData">mimeData</a></td> |
238 <td>Public method to return the mime data.</td> |
309 <td>Public method to return the mime data.</td> |
239 </tr><tr> |
310 </tr> |
|
311 <tr> |
240 <td><a href="#HistoryMenuModel.parent">parent</a></td> |
312 <td><a href="#HistoryMenuModel.parent">parent</a></td> |
241 <td>Public method to get the parent index.</td> |
313 <td>Public method to get the parent index.</td> |
242 </tr><tr> |
314 </tr> |
|
315 <tr> |
243 <td><a href="#HistoryMenuModel.rowCount">rowCount</a></td> |
316 <td><a href="#HistoryMenuModel.rowCount">rowCount</a></td> |
244 <td>Public method to determine the number of rows.</td> |
317 <td>Public method to determine the number of rows.</td> |
245 </tr> |
318 </tr> |
246 </table> |
319 </table> |
247 <h3>Static Methods</h3> |
320 <h3>Static Methods</h3> |
248 <table> |
321 |
249 <tr><td>None</td></tr> |
322 <table> |
250 </table> |
323 <tr><td>None</td></tr> |
|
324 </table> |
|
325 |
251 <a NAME="HistoryMenuModel.__init__" ID="HistoryMenuModel.__init__"></a> |
326 <a NAME="HistoryMenuModel.__init__" ID="HistoryMenuModel.__init__"></a> |
252 <h4>HistoryMenuModel (Constructor)</h4> |
327 <h4>HistoryMenuModel (Constructor)</h4> |
253 <b>HistoryMenuModel</b>(<i>sourceModel, parent=None</i>) |
328 <b>HistoryMenuModel</b>(<i>sourceModel, parent=None</i>) |
|
329 |
254 <p> |
330 <p> |
255 Constructor |
331 Constructor |
256 </p><dl> |
332 </p> |
|
333 <dl> |
|
334 |
257 <dt><i>sourceModel</i></dt> |
335 <dt><i>sourceModel</i></dt> |
258 <dd> |
336 <dd> |
259 reference to the source model (QAbstractItemModel) |
337 reference to the source model (QAbstractItemModel) |
260 </dd><dt><i>parent</i></dt> |
338 </dd> |
|
339 <dt><i>parent</i></dt> |
261 <dd> |
340 <dd> |
262 reference to the parent object (QObject) |
341 reference to the parent object (QObject) |
263 </dd> |
342 </dd> |
264 </dl><a NAME="HistoryMenuModel.bumpedRows" ID="HistoryMenuModel.bumpedRows"></a> |
343 </dl> |
|
344 <a NAME="HistoryMenuModel.bumpedRows" ID="HistoryMenuModel.bumpedRows"></a> |
265 <h4>HistoryMenuModel.bumpedRows</h4> |
345 <h4>HistoryMenuModel.bumpedRows</h4> |
266 <b>bumpedRows</b>(<i></i>) |
346 <b>bumpedRows</b>(<i></i>) |
|
347 |
267 <p> |
348 <p> |
268 Public method to determine the number of rows moved to the root. |
349 Public method to determine the number of rows moved to the root. |
269 </p><dl> |
350 </p> |
|
351 <dl> |
270 <dt>Returns:</dt> |
352 <dt>Returns:</dt> |
271 <dd> |
353 <dd> |
272 number of rows moved to the root (integer) |
354 number of rows moved to the root (integer) |
273 </dd> |
355 </dd> |
274 </dl><a NAME="HistoryMenuModel.columnCount" ID="HistoryMenuModel.columnCount"></a> |
356 </dl> |
|
357 <a NAME="HistoryMenuModel.columnCount" ID="HistoryMenuModel.columnCount"></a> |
275 <h4>HistoryMenuModel.columnCount</h4> |
358 <h4>HistoryMenuModel.columnCount</h4> |
276 <b>columnCount</b>(<i>parent=None</i>) |
359 <b>columnCount</b>(<i>parent=None</i>) |
|
360 |
277 <p> |
361 <p> |
278 Public method to get the number of columns. |
362 Public method to get the number of columns. |
279 </p><dl> |
363 </p> |
|
364 <dl> |
|
365 |
280 <dt><i>parent</i></dt> |
366 <dt><i>parent</i></dt> |
281 <dd> |
367 <dd> |
282 index of parent (QModelIndex) |
368 index of parent (QModelIndex) |
283 </dd> |
369 </dd> |
284 </dl><dl> |
370 </dl> |
|
371 <dl> |
285 <dt>Returns:</dt> |
372 <dt>Returns:</dt> |
286 <dd> |
373 <dd> |
287 number of columns (integer) |
374 number of columns (integer) |
288 </dd> |
375 </dd> |
289 </dl><a NAME="HistoryMenuModel.index" ID="HistoryMenuModel.index"></a> |
376 </dl> |
|
377 <a NAME="HistoryMenuModel.index" ID="HistoryMenuModel.index"></a> |
290 <h4>HistoryMenuModel.index</h4> |
378 <h4>HistoryMenuModel.index</h4> |
291 <b>index</b>(<i>row, column, parent=None</i>) |
379 <b>index</b>(<i>row, column, parent=None</i>) |
|
380 |
292 <p> |
381 <p> |
293 Public method to create an index. |
382 Public method to create an index. |
294 </p><dl> |
383 </p> |
|
384 <dl> |
|
385 |
295 <dt><i>row</i></dt> |
386 <dt><i>row</i></dt> |
296 <dd> |
387 <dd> |
297 row number for the index (integer) |
388 row number for the index (integer) |
298 </dd><dt><i>column</i></dt> |
389 </dd> |
|
390 <dt><i>column</i></dt> |
299 <dd> |
391 <dd> |
300 column number for the index (integer) |
392 column number for the index (integer) |
301 </dd><dt><i>parent</i></dt> |
393 </dd> |
|
394 <dt><i>parent</i></dt> |
302 <dd> |
395 <dd> |
303 index of the parent item (QModelIndex) |
396 index of the parent item (QModelIndex) |
304 </dd> |
397 </dd> |
305 </dl><dl> |
398 </dl> |
|
399 <dl> |
306 <dt>Returns:</dt> |
400 <dt>Returns:</dt> |
307 <dd> |
401 <dd> |
308 requested index (QModelIndex) |
402 requested index (QModelIndex) |
309 </dd> |
403 </dd> |
310 </dl><a NAME="HistoryMenuModel.mapFromSource" ID="HistoryMenuModel.mapFromSource"></a> |
404 </dl> |
|
405 <a NAME="HistoryMenuModel.mapFromSource" ID="HistoryMenuModel.mapFromSource"></a> |
311 <h4>HistoryMenuModel.mapFromSource</h4> |
406 <h4>HistoryMenuModel.mapFromSource</h4> |
312 <b>mapFromSource</b>(<i>sourceIndex</i>) |
407 <b>mapFromSource</b>(<i>sourceIndex</i>) |
|
408 |
313 <p> |
409 <p> |
314 Public method to map an index to the proxy model index. |
410 Public method to map an index to the proxy model index. |
315 </p><dl> |
411 </p> |
|
412 <dl> |
|
413 |
316 <dt><i>sourceIndex</i></dt> |
414 <dt><i>sourceIndex</i></dt> |
317 <dd> |
415 <dd> |
318 reference to a source model index (QModelIndex) |
416 reference to a source model index (QModelIndex) |
319 </dd> |
417 </dd> |
320 </dl><dl> |
418 </dl> |
|
419 <dl> |
321 <dt>Returns:</dt> |
420 <dt>Returns:</dt> |
322 <dd> |
421 <dd> |
323 proxy model index (QModelIndex) |
422 proxy model index (QModelIndex) |
324 </dd> |
423 </dd> |
325 </dl><a NAME="HistoryMenuModel.mapToSource" ID="HistoryMenuModel.mapToSource"></a> |
424 </dl> |
|
425 <a NAME="HistoryMenuModel.mapToSource" ID="HistoryMenuModel.mapToSource"></a> |
326 <h4>HistoryMenuModel.mapToSource</h4> |
426 <h4>HistoryMenuModel.mapToSource</h4> |
327 <b>mapToSource</b>(<i>proxyIndex</i>) |
427 <b>mapToSource</b>(<i>proxyIndex</i>) |
|
428 |
328 <p> |
429 <p> |
329 Public method to map an index to the source model index. |
430 Public method to map an index to the source model index. |
330 </p><dl> |
431 </p> |
|
432 <dl> |
|
433 |
331 <dt><i>proxyIndex</i></dt> |
434 <dt><i>proxyIndex</i></dt> |
332 <dd> |
435 <dd> |
333 reference to a proxy model index (QModelIndex) |
436 reference to a proxy model index (QModelIndex) |
334 </dd> |
437 </dd> |
335 </dl><dl> |
438 </dl> |
|
439 <dl> |
336 <dt>Returns:</dt> |
440 <dt>Returns:</dt> |
337 <dd> |
441 <dd> |
338 source model index (QModelIndex) |
442 source model index (QModelIndex) |
339 </dd> |
443 </dd> |
340 </dl><a NAME="HistoryMenuModel.mimeData" ID="HistoryMenuModel.mimeData"></a> |
444 </dl> |
|
445 <a NAME="HistoryMenuModel.mimeData" ID="HistoryMenuModel.mimeData"></a> |
341 <h4>HistoryMenuModel.mimeData</h4> |
446 <h4>HistoryMenuModel.mimeData</h4> |
342 <b>mimeData</b>(<i>indexes</i>) |
447 <b>mimeData</b>(<i>indexes</i>) |
|
448 |
343 <p> |
449 <p> |
344 Public method to return the mime data. |
450 Public method to return the mime data. |
345 </p><dl> |
451 </p> |
|
452 <dl> |
|
453 |
346 <dt><i>indexes</i></dt> |
454 <dt><i>indexes</i></dt> |
347 <dd> |
455 <dd> |
348 list of indexes (QModelIndexList) |
456 list of indexes (QModelIndexList) |
349 </dd> |
457 </dd> |
350 </dl><dl> |
458 </dl> |
|
459 <dl> |
351 <dt>Returns:</dt> |
460 <dt>Returns:</dt> |
352 <dd> |
461 <dd> |
353 mime data (QMimeData) |
462 mime data (QMimeData) |
354 </dd> |
463 </dd> |
355 </dl><a NAME="HistoryMenuModel.parent" ID="HistoryMenuModel.parent"></a> |
464 </dl> |
|
465 <a NAME="HistoryMenuModel.parent" ID="HistoryMenuModel.parent"></a> |
356 <h4>HistoryMenuModel.parent</h4> |
466 <h4>HistoryMenuModel.parent</h4> |
357 <b>parent</b>(<i>index</i>) |
467 <b>parent</b>(<i>index</i>) |
|
468 |
358 <p> |
469 <p> |
359 Public method to get the parent index. |
470 Public method to get the parent index. |
360 </p><dl> |
471 </p> |
|
472 <dl> |
|
473 |
361 <dt><i>index</i></dt> |
474 <dt><i>index</i></dt> |
362 <dd> |
475 <dd> |
363 index of item to get parent (QModelIndex) |
476 index of item to get parent (QModelIndex) |
364 </dd> |
477 </dd> |
365 </dl><dl> |
478 </dl> |
|
479 <dl> |
366 <dt>Returns:</dt> |
480 <dt>Returns:</dt> |
367 <dd> |
481 <dd> |
368 index of parent (QModelIndex) |
482 index of parent (QModelIndex) |
369 </dd> |
483 </dd> |
370 </dl><a NAME="HistoryMenuModel.rowCount" ID="HistoryMenuModel.rowCount"></a> |
484 </dl> |
|
485 <a NAME="HistoryMenuModel.rowCount" ID="HistoryMenuModel.rowCount"></a> |
371 <h4>HistoryMenuModel.rowCount</h4> |
486 <h4>HistoryMenuModel.rowCount</h4> |
372 <b>rowCount</b>(<i>parent=None</i>) |
487 <b>rowCount</b>(<i>parent=None</i>) |
|
488 |
373 <p> |
489 <p> |
374 Public method to determine the number of rows. |
490 Public method to determine the number of rows. |
375 </p><dl> |
491 </p> |
|
492 <dl> |
|
493 |
376 <dt><i>parent</i></dt> |
494 <dt><i>parent</i></dt> |
377 <dd> |
495 <dd> |
378 index of parent (QModelIndex) |
496 index of parent (QModelIndex) |
379 </dd> |
497 </dd> |
380 </dl><dl> |
498 </dl> |
|
499 <dl> |
381 <dt>Returns:</dt> |
500 <dt>Returns:</dt> |
382 <dd> |
501 <dd> |
383 number of rows (integer) |
502 number of rows (integer) |
384 </dd> |
503 </dd> |
385 </dl> |
504 </dl> |
386 <div align="right"><a href="#top">Up</a></div> |
505 <div align="right"><a href="#top">Up</a></div> |
387 <hr /><hr /> |
506 <hr /> |
|
507 <hr /> |
388 <a NAME="HistoryMostVisitedMenu" ID="HistoryMostVisitedMenu"></a> |
508 <a NAME="HistoryMostVisitedMenu" ID="HistoryMostVisitedMenu"></a> |
389 <h2>HistoryMostVisitedMenu</h2> |
509 <h2>HistoryMostVisitedMenu</h2> |
|
510 |
390 <p> |
511 <p> |
391 Class implementing the most visited history menu. |
512 Class implementing the most visited history menu. |
392 </p><h3>Signals</h3> |
513 </p> |
393 <dl> |
514 <h3>Signals</h3> |
|
515 <dl> |
|
516 |
394 <dt>newBackgroundTab(QUrl, str)</dt> |
517 <dt>newBackgroundTab(QUrl, str)</dt> |
395 <dd> |
518 <dd> |
396 emitted to open a URL in a new |
519 emitted to open a URL in a new |
397 background tab |
520 background tab |
398 </dd><dt>newPrivateWindow(QUrl, str)</dt> |
521 </dd> |
|
522 <dt>newPrivateWindow(QUrl, str)</dt> |
399 <dd> |
523 <dd> |
400 emitted to open a URL in a new |
524 emitted to open a URL in a new |
401 private window |
525 private window |
402 </dd><dt>newTab(QUrl, str)</dt> |
526 </dd> |
|
527 <dt>newTab(QUrl, str)</dt> |
403 <dd> |
528 <dd> |
404 emitted to open a URL in a new tab |
529 emitted to open a URL in a new tab |
405 </dd><dt>newWindow(QUrl, str)</dt> |
530 </dd> |
|
531 <dt>newWindow(QUrl, str)</dt> |
406 <dd> |
532 <dd> |
407 emitted to open a URL in a new window |
533 emitted to open a URL in a new window |
408 </dd><dt>openUrl(QUrl, str)</dt> |
534 </dd> |
|
535 <dt>openUrl(QUrl, str)</dt> |
409 <dd> |
536 <dd> |
410 emitted to open a URL in the current tab |
537 emitted to open a URL in the current tab |
411 </dd> |
538 </dd> |
412 </dl> |
539 </dl> |
413 <h3>Derived from</h3> |
540 <h3>Derived from</h3> |
414 E5ModelMenu |
541 E5ModelMenu |
415 <h3>Class Attributes</h3> |
542 <h3>Class Attributes</h3> |
|
543 |
416 <table> |
544 <table> |
417 <tr><td>None</td></tr> |
545 <tr><td>None</td></tr> |
418 </table> |
546 </table> |
419 <h3>Class Methods</h3> |
547 <h3>Class Methods</h3> |
|
548 |
420 <table> |
549 <table> |
421 <tr><td>None</td></tr> |
550 <tr><td>None</td></tr> |
422 </table> |
551 </table> |
423 <h3>Methods</h3> |
552 <h3>Methods</h3> |
424 <table> |
553 |
|
554 <table> |
|
555 |
425 <tr> |
556 <tr> |
426 <td><a href="#HistoryMostVisitedMenu.__init__">HistoryMostVisitedMenu</a></td> |
557 <td><a href="#HistoryMostVisitedMenu.__init__">HistoryMostVisitedMenu</a></td> |
427 <td>Constructor</td> |
558 <td>Constructor</td> |
428 </tr><tr> |
559 </tr> |
|
560 <tr> |
429 <td><a href="#HistoryMostVisitedMenu.__activated">__activated</a></td> |
561 <td><a href="#HistoryMostVisitedMenu.__activated">__activated</a></td> |
430 <td>Private slot handling the activated signal.</td> |
562 <td>Private slot handling the activated signal.</td> |
431 </tr><tr> |
563 </tr> |
|
564 <tr> |
432 <td><a href="#HistoryMostVisitedMenu.prePopulated">prePopulated</a></td> |
565 <td><a href="#HistoryMostVisitedMenu.prePopulated">prePopulated</a></td> |
433 <td>Public method to add any actions before the tree.</td> |
566 <td>Public method to add any actions before the tree.</td> |
434 </tr> |
567 </tr> |
435 </table> |
568 </table> |
436 <h3>Static Methods</h3> |
569 <h3>Static Methods</h3> |
437 <table> |
570 |
438 <tr><td>None</td></tr> |
571 <table> |
439 </table> |
572 <tr><td>None</td></tr> |
|
573 </table> |
|
574 |
440 <a NAME="HistoryMostVisitedMenu.__init__" ID="HistoryMostVisitedMenu.__init__"></a> |
575 <a NAME="HistoryMostVisitedMenu.__init__" ID="HistoryMostVisitedMenu.__init__"></a> |
441 <h4>HistoryMostVisitedMenu (Constructor)</h4> |
576 <h4>HistoryMostVisitedMenu (Constructor)</h4> |
442 <b>HistoryMostVisitedMenu</b>(<i>count, parent=None</i>) |
577 <b>HistoryMostVisitedMenu</b>(<i>count, parent=None</i>) |
|
578 |
443 <p> |
579 <p> |
444 Constructor |
580 Constructor |
445 </p><dl> |
581 </p> |
|
582 <dl> |
|
583 |
446 <dt><i>count</i></dt> |
584 <dt><i>count</i></dt> |
447 <dd> |
585 <dd> |
448 maximum number of entries to be shown (integer) |
586 maximum number of entries to be shown (integer) |
449 </dd><dt><i>parent</i></dt> |
587 </dd> |
|
588 <dt><i>parent</i></dt> |
450 <dd> |
589 <dd> |
451 reference to the parent widget (QWidget) |
590 reference to the parent widget (QWidget) |
452 </dd> |
591 </dd> |
453 </dl><a NAME="HistoryMostVisitedMenu.__activated" ID="HistoryMostVisitedMenu.__activated"></a> |
592 </dl> |
|
593 <a NAME="HistoryMostVisitedMenu.__activated" ID="HistoryMostVisitedMenu.__activated"></a> |
454 <h4>HistoryMostVisitedMenu.__activated</h4> |
594 <h4>HistoryMostVisitedMenu.__activated</h4> |
455 <b>__activated</b>(<i>idx</i>) |
595 <b>__activated</b>(<i>idx</i>) |
|
596 |
456 <p> |
597 <p> |
457 Private slot handling the activated signal. |
598 Private slot handling the activated signal. |
458 </p><dl> |
599 </p> |
|
600 <dl> |
|
601 |
459 <dt><i>idx</i></dt> |
602 <dt><i>idx</i></dt> |
460 <dd> |
603 <dd> |
461 index of the activated item (QModelIndex) |
604 index of the activated item (QModelIndex) |
462 </dd> |
605 </dd> |
463 </dl><a NAME="HistoryMostVisitedMenu.prePopulated" ID="HistoryMostVisitedMenu.prePopulated"></a> |
606 </dl> |
|
607 <a NAME="HistoryMostVisitedMenu.prePopulated" ID="HistoryMostVisitedMenu.prePopulated"></a> |
464 <h4>HistoryMostVisitedMenu.prePopulated</h4> |
608 <h4>HistoryMostVisitedMenu.prePopulated</h4> |
465 <b>prePopulated</b>(<i></i>) |
609 <b>prePopulated</b>(<i></i>) |
|
610 |
466 <p> |
611 <p> |
467 Public method to add any actions before the tree. |
612 Public method to add any actions before the tree. |
468 </p><dl> |
613 </p> |
|
614 <dl> |
469 <dt>Returns:</dt> |
615 <dt>Returns:</dt> |
470 <dd> |
616 <dd> |
471 flag indicating if any actions were added (boolean) |
617 flag indicating if any actions were added (boolean) |
472 </dd> |
618 </dd> |
473 </dl> |
619 </dl> |
474 <div align="right"><a href="#top">Up</a></div> |
620 <div align="right"><a href="#top">Up</a></div> |
475 <hr /><hr /> |
621 <hr /> |
|
622 <hr /> |
476 <a NAME="HistoryMostVisitedMenuModel" ID="HistoryMostVisitedMenuModel"></a> |
623 <a NAME="HistoryMostVisitedMenuModel" ID="HistoryMostVisitedMenuModel"></a> |
477 <h2>HistoryMostVisitedMenuModel</h2> |
624 <h2>HistoryMostVisitedMenuModel</h2> |
|
625 |
478 <p> |
626 <p> |
479 Class implementing a model to show the most visited history entries. |
627 Class implementing a model to show the most visited history entries. |
480 </p> |
628 </p> |
481 <h3>Derived from</h3> |
629 <h3>Derived from</h3> |
482 QSortFilterProxyModel |
630 QSortFilterProxyModel |
483 <h3>Class Attributes</h3> |
631 <h3>Class Attributes</h3> |
|
632 |
484 <table> |
633 <table> |
485 <tr><td>None</td></tr> |
634 <tr><td>None</td></tr> |
486 </table> |
635 </table> |
487 <h3>Class Methods</h3> |
636 <h3>Class Methods</h3> |
|
637 |
488 <table> |
638 <table> |
489 <tr><td>None</td></tr> |
639 <tr><td>None</td></tr> |
490 </table> |
640 </table> |
491 <h3>Methods</h3> |
641 <h3>Methods</h3> |
492 <table> |
642 |
|
643 <table> |
|
644 |
493 <tr> |
645 <tr> |
494 <td><a href="#HistoryMostVisitedMenuModel.__init__">HistoryMostVisitedMenuModel</a></td> |
646 <td><a href="#HistoryMostVisitedMenuModel.__init__">HistoryMostVisitedMenuModel</a></td> |
495 <td>Constructor</td> |
647 <td>Constructor</td> |
496 </tr><tr> |
648 </tr> |
|
649 <tr> |
497 <td><a href="#HistoryMostVisitedMenuModel.lessThan">lessThan</a></td> |
650 <td><a href="#HistoryMostVisitedMenuModel.lessThan">lessThan</a></td> |
498 <td>Public method used to sort the displayed items.</td> |
651 <td>Public method used to sort the displayed items.</td> |
499 </tr> |
652 </tr> |
500 </table> |
653 </table> |
501 <h3>Static Methods</h3> |
654 <h3>Static Methods</h3> |
502 <table> |
655 |
503 <tr><td>None</td></tr> |
656 <table> |
504 </table> |
657 <tr><td>None</td></tr> |
|
658 </table> |
|
659 |
505 <a NAME="HistoryMostVisitedMenuModel.__init__" ID="HistoryMostVisitedMenuModel.__init__"></a> |
660 <a NAME="HistoryMostVisitedMenuModel.__init__" ID="HistoryMostVisitedMenuModel.__init__"></a> |
506 <h4>HistoryMostVisitedMenuModel (Constructor)</h4> |
661 <h4>HistoryMostVisitedMenuModel (Constructor)</h4> |
507 <b>HistoryMostVisitedMenuModel</b>(<i>sourceModel, parent=None</i>) |
662 <b>HistoryMostVisitedMenuModel</b>(<i>sourceModel, parent=None</i>) |
|
663 |
508 <p> |
664 <p> |
509 Constructor |
665 Constructor |
510 </p><dl> |
666 </p> |
|
667 <dl> |
|
668 |
511 <dt><i>sourceModel</i></dt> |
669 <dt><i>sourceModel</i></dt> |
512 <dd> |
670 <dd> |
513 reference to the source model (QAbstractItemModel) |
671 reference to the source model (QAbstractItemModel) |
514 </dd><dt><i>parent</i></dt> |
672 </dd> |
|
673 <dt><i>parent</i></dt> |
515 <dd> |
674 <dd> |
516 reference to the parent object (QObject) |
675 reference to the parent object (QObject) |
517 </dd> |
676 </dd> |
518 </dl><a NAME="HistoryMostVisitedMenuModel.lessThan" ID="HistoryMostVisitedMenuModel.lessThan"></a> |
677 </dl> |
|
678 <a NAME="HistoryMostVisitedMenuModel.lessThan" ID="HistoryMostVisitedMenuModel.lessThan"></a> |
519 <h4>HistoryMostVisitedMenuModel.lessThan</h4> |
679 <h4>HistoryMostVisitedMenuModel.lessThan</h4> |
520 <b>lessThan</b>(<i>left, right</i>) |
680 <b>lessThan</b>(<i>left, right</i>) |
|
681 |
521 <p> |
682 <p> |
522 Public method used to sort the displayed items. |
683 Public method used to sort the displayed items. |
523 </p><dl> |
684 </p> |
|
685 <dl> |
|
686 |
524 <dt><i>left</i></dt> |
687 <dt><i>left</i></dt> |
525 <dd> |
688 <dd> |
526 index of left item (QModelIndex) |
689 index of left item (QModelIndex) |
527 </dd><dt><i>right</i></dt> |
690 </dd> |
|
691 <dt><i>right</i></dt> |
528 <dd> |
692 <dd> |
529 index of right item (QModelIndex) |
693 index of right item (QModelIndex) |
530 </dd> |
694 </dd> |
531 </dl><dl> |
695 </dl> |
|
696 <dl> |
532 <dt>Returns:</dt> |
697 <dt>Returns:</dt> |
533 <dd> |
698 <dd> |
534 true, if left is less than right (boolean) |
699 true, if left is less than right (boolean) |
535 </dd> |
700 </dd> |
536 </dl> |
701 </dl> |