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.HistoryCompleter</h1> |
23 <h1>eric6.WebBrowser.History.HistoryCompleter</h1> |
|
24 |
23 <p> |
25 <p> |
24 Module implementing a special completer for the history. |
26 Module implementing a special completer for the history. |
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="#HistoryCompleter">HistoryCompleter</a></td> |
38 <td><a href="#HistoryCompleter">HistoryCompleter</a></td> |
34 <td>Class implementing a completer for the browser history.</td> |
39 <td>Class implementing a completer for the browser history.</td> |
35 </tr><tr> |
40 </tr> |
|
41 <tr> |
36 <td><a href="#HistoryCompletionModel">HistoryCompletionModel</a></td> |
42 <td><a href="#HistoryCompletionModel">HistoryCompletionModel</a></td> |
37 <td>Class implementing a special model for history based completions.</td> |
43 <td>Class implementing a special model for history based completions.</td> |
38 </tr><tr> |
44 </tr> |
|
45 <tr> |
39 <td><a href="#HistoryCompletionView">HistoryCompletionView</a></td> |
46 <td><a href="#HistoryCompletionView">HistoryCompletionView</a></td> |
40 <td>Class implementing a special completer view for history based completions.</td> |
47 <td>Class implementing a special completer view for history based completions.</td> |
41 </tr> |
48 </tr> |
42 </table> |
49 </table> |
43 <h3>Functions</h3> |
50 <h3>Functions</h3> |
44 <table> |
51 |
45 <tr><td>None</td></tr> |
52 <table> |
46 </table> |
53 <tr><td>None</td></tr> |
47 <hr /><hr /> |
54 </table> |
|
55 <hr /> |
|
56 <hr /> |
48 <a NAME="HistoryCompleter" ID="HistoryCompleter"></a> |
57 <a NAME="HistoryCompleter" ID="HistoryCompleter"></a> |
49 <h2>HistoryCompleter</h2> |
58 <h2>HistoryCompleter</h2> |
|
59 |
50 <p> |
60 <p> |
51 Class implementing a completer for the browser history. |
61 Class implementing a completer for the browser history. |
52 </p> |
62 </p> |
53 <h3>Derived from</h3> |
63 <h3>Derived from</h3> |
54 QCompleter |
64 QCompleter |
55 <h3>Class Attributes</h3> |
65 <h3>Class Attributes</h3> |
|
66 |
56 <table> |
67 <table> |
57 <tr><td>None</td></tr> |
68 <tr><td>None</td></tr> |
58 </table> |
69 </table> |
59 <h3>Class Methods</h3> |
70 <h3>Class Methods</h3> |
|
71 |
60 <table> |
72 <table> |
61 <tr><td>None</td></tr> |
73 <tr><td>None</td></tr> |
62 </table> |
74 </table> |
63 <h3>Methods</h3> |
75 <h3>Methods</h3> |
64 <table> |
76 |
|
77 <table> |
|
78 |
65 <tr> |
79 <tr> |
66 <td><a href="#HistoryCompleter.__init__">HistoryCompleter</a></td> |
80 <td><a href="#HistoryCompleter.__init__">HistoryCompleter</a></td> |
67 <td>Constructor</td> |
81 <td>Constructor</td> |
68 </tr><tr> |
82 </tr> |
|
83 <tr> |
69 <td><a href="#HistoryCompleter.__updateFilter">__updateFilter</a></td> |
84 <td><a href="#HistoryCompleter.__updateFilter">__updateFilter</a></td> |
70 <td>Private slot to update the search string.</td> |
85 <td>Private slot to update the search string.</td> |
71 </tr><tr> |
86 </tr> |
|
87 <tr> |
72 <td><a href="#HistoryCompleter.pathFromIndex">pathFromIndex</a></td> |
88 <td><a href="#HistoryCompleter.pathFromIndex">pathFromIndex</a></td> |
73 <td>Public method to get a path for a given index.</td> |
89 <td>Public method to get a path for a given index.</td> |
74 </tr><tr> |
90 </tr> |
|
91 <tr> |
75 <td><a href="#HistoryCompleter.splitPath">splitPath</a></td> |
92 <td><a href="#HistoryCompleter.splitPath">splitPath</a></td> |
76 <td>Public method to split the given path into strings, that are used to match at each level in the model.</td> |
93 <td>Public method to split the given path into strings, that are used to match at each level in the model.</td> |
77 </tr> |
94 </tr> |
78 </table> |
95 </table> |
79 <h3>Static Methods</h3> |
96 <h3>Static Methods</h3> |
80 <table> |
97 |
81 <tr><td>None</td></tr> |
98 <table> |
82 </table> |
99 <tr><td>None</td></tr> |
|
100 </table> |
|
101 |
83 <a NAME="HistoryCompleter.__init__" ID="HistoryCompleter.__init__"></a> |
102 <a NAME="HistoryCompleter.__init__" ID="HistoryCompleter.__init__"></a> |
84 <h4>HistoryCompleter (Constructor)</h4> |
103 <h4>HistoryCompleter (Constructor)</h4> |
85 <b>HistoryCompleter</b>(<i>model, parent=None</i>) |
104 <b>HistoryCompleter</b>(<i>model, parent=None</i>) |
|
105 |
86 <p> |
106 <p> |
87 Constructor |
107 Constructor |
88 </p><dl> |
108 </p> |
|
109 <dl> |
|
110 |
89 <dt><i>model</i></dt> |
111 <dt><i>model</i></dt> |
90 <dd> |
112 <dd> |
91 reference to the model (QAbstractItemModel) |
113 reference to the model (QAbstractItemModel) |
92 </dd><dt><i>parent</i></dt> |
114 </dd> |
|
115 <dt><i>parent</i></dt> |
93 <dd> |
116 <dd> |
94 reference to the parent object (QObject) |
117 reference to the parent object (QObject) |
95 </dd> |
118 </dd> |
96 </dl><a NAME="HistoryCompleter.__updateFilter" ID="HistoryCompleter.__updateFilter"></a> |
119 </dl> |
|
120 <a NAME="HistoryCompleter.__updateFilter" ID="HistoryCompleter.__updateFilter"></a> |
97 <h4>HistoryCompleter.__updateFilter</h4> |
121 <h4>HistoryCompleter.__updateFilter</h4> |
98 <b>__updateFilter</b>(<i></i>) |
122 <b>__updateFilter</b>(<i></i>) |
|
123 |
99 <p> |
124 <p> |
100 Private slot to update the search string. |
125 Private slot to update the search string. |
101 </p><a NAME="HistoryCompleter.pathFromIndex" ID="HistoryCompleter.pathFromIndex"></a> |
126 </p> |
|
127 <a NAME="HistoryCompleter.pathFromIndex" ID="HistoryCompleter.pathFromIndex"></a> |
102 <h4>HistoryCompleter.pathFromIndex</h4> |
128 <h4>HistoryCompleter.pathFromIndex</h4> |
103 <b>pathFromIndex</b>(<i>idx</i>) |
129 <b>pathFromIndex</b>(<i>idx</i>) |
|
130 |
104 <p> |
131 <p> |
105 Public method to get a path for a given index. |
132 Public method to get a path for a given index. |
106 </p><dl> |
133 </p> |
|
134 <dl> |
|
135 |
107 <dt><i>idx</i></dt> |
136 <dt><i>idx</i></dt> |
108 <dd> |
137 <dd> |
109 reference to the index (QModelIndex) |
138 reference to the index (QModelIndex) |
110 </dd> |
139 </dd> |
111 </dl><dl> |
140 </dl> |
|
141 <dl> |
112 <dt>Returns:</dt> |
142 <dt>Returns:</dt> |
113 <dd> |
143 <dd> |
114 the actual URL from the history (string) |
144 the actual URL from the history (string) |
115 </dd> |
145 </dd> |
116 </dl><a NAME="HistoryCompleter.splitPath" ID="HistoryCompleter.splitPath"></a> |
146 </dl> |
|
147 <a NAME="HistoryCompleter.splitPath" ID="HistoryCompleter.splitPath"></a> |
117 <h4>HistoryCompleter.splitPath</h4> |
148 <h4>HistoryCompleter.splitPath</h4> |
118 <b>splitPath</b>(<i>path</i>) |
149 <b>splitPath</b>(<i>path</i>) |
|
150 |
119 <p> |
151 <p> |
120 Public method to split the given path into strings, that are used to |
152 Public method to split the given path into strings, that are used to |
121 match at each level in the model. |
153 match at each level in the model. |
122 </p><dl> |
154 </p> |
|
155 <dl> |
|
156 |
123 <dt><i>path</i></dt> |
157 <dt><i>path</i></dt> |
124 <dd> |
158 <dd> |
125 path to be split (string) |
159 path to be split (string) |
126 </dd> |
160 </dd> |
127 </dl><dl> |
161 </dl> |
|
162 <dl> |
128 <dt>Returns:</dt> |
163 <dt>Returns:</dt> |
129 <dd> |
164 <dd> |
130 list of path elements (list of strings) |
165 list of path elements (list of strings) |
131 </dd> |
166 </dd> |
132 </dl> |
167 </dl> |
133 <div align="right"><a href="#top">Up</a></div> |
168 <div align="right"><a href="#top">Up</a></div> |
134 <hr /><hr /> |
169 <hr /> |
|
170 <hr /> |
135 <a NAME="HistoryCompletionModel" ID="HistoryCompletionModel"></a> |
171 <a NAME="HistoryCompletionModel" ID="HistoryCompletionModel"></a> |
136 <h2>HistoryCompletionModel</h2> |
172 <h2>HistoryCompletionModel</h2> |
|
173 |
137 <p> |
174 <p> |
138 Class implementing a special model for history based completions. |
175 Class implementing a special model for history based completions. |
139 </p> |
176 </p> |
140 <h3>Derived from</h3> |
177 <h3>Derived from</h3> |
141 QSortFilterProxyModel |
178 QSortFilterProxyModel |
142 <h3>Class Attributes</h3> |
179 <h3>Class Attributes</h3> |
|
180 |
143 <table> |
181 <table> |
144 <tr><td>HistoryCompletionRole</td></tr> |
182 <tr><td>HistoryCompletionRole</td></tr> |
145 </table> |
183 </table> |
146 <h3>Class Methods</h3> |
184 <h3>Class Methods</h3> |
|
185 |
147 <table> |
186 <table> |
148 <tr><td>None</td></tr> |
187 <tr><td>None</td></tr> |
149 </table> |
188 </table> |
150 <h3>Methods</h3> |
189 <h3>Methods</h3> |
151 <table> |
190 |
|
191 <table> |
|
192 |
152 <tr> |
193 <tr> |
153 <td><a href="#HistoryCompletionModel.__init__">HistoryCompletionModel</a></td> |
194 <td><a href="#HistoryCompletionModel.__init__">HistoryCompletionModel</a></td> |
154 <td>Constructor</td> |
195 <td>Constructor</td> |
155 </tr><tr> |
196 </tr> |
|
197 <tr> |
156 <td><a href="#HistoryCompletionModel.data">data</a></td> |
198 <td><a href="#HistoryCompletionModel.data">data</a></td> |
157 <td>Public method to get data from the model.</td> |
199 <td>Public method to get data from the model.</td> |
158 </tr><tr> |
200 </tr> |
|
201 <tr> |
159 <td><a href="#HistoryCompletionModel.filterAcceptsRow">filterAcceptsRow</a></td> |
202 <td><a href="#HistoryCompletionModel.filterAcceptsRow">filterAcceptsRow</a></td> |
160 <td>Public method to determine, if the row is acceptable.</td> |
203 <td>Public method to determine, if the row is acceptable.</td> |
161 </tr><tr> |
204 </tr> |
|
205 <tr> |
162 <td><a href="#HistoryCompletionModel.isValid">isValid</a></td> |
206 <td><a href="#HistoryCompletionModel.isValid">isValid</a></td> |
163 <td>Public method to check the model for validity.</td> |
207 <td>Public method to check the model for validity.</td> |
164 </tr><tr> |
208 </tr> |
|
209 <tr> |
165 <td><a href="#HistoryCompletionModel.lessThan">lessThan</a></td> |
210 <td><a href="#HistoryCompletionModel.lessThan">lessThan</a></td> |
166 <td>Public method used to sort the displayed items.</td> |
211 <td>Public method used to sort the displayed items.</td> |
167 </tr><tr> |
212 </tr> |
|
213 <tr> |
168 <td><a href="#HistoryCompletionModel.searchString">searchString</a></td> |
214 <td><a href="#HistoryCompletionModel.searchString">searchString</a></td> |
169 <td>Public method to get the current search string.</td> |
215 <td>Public method to get the current search string.</td> |
170 </tr><tr> |
216 </tr> |
|
217 <tr> |
171 <td><a href="#HistoryCompletionModel.setSearchString">setSearchString</a></td> |
218 <td><a href="#HistoryCompletionModel.setSearchString">setSearchString</a></td> |
172 <td>Public method to set the current search string.</td> |
219 <td>Public method to set the current search string.</td> |
173 </tr><tr> |
220 </tr> |
|
221 <tr> |
174 <td><a href="#HistoryCompletionModel.setValid">setValid</a></td> |
222 <td><a href="#HistoryCompletionModel.setValid">setValid</a></td> |
175 <td>Public method to set the model's validity.</td> |
223 <td>Public method to set the model's validity.</td> |
176 </tr> |
224 </tr> |
177 </table> |
225 </table> |
178 <h3>Static Methods</h3> |
226 <h3>Static Methods</h3> |
179 <table> |
227 |
180 <tr><td>None</td></tr> |
228 <table> |
181 </table> |
229 <tr><td>None</td></tr> |
|
230 </table> |
|
231 |
182 <a NAME="HistoryCompletionModel.__init__" ID="HistoryCompletionModel.__init__"></a> |
232 <a NAME="HistoryCompletionModel.__init__" ID="HistoryCompletionModel.__init__"></a> |
183 <h4>HistoryCompletionModel (Constructor)</h4> |
233 <h4>HistoryCompletionModel (Constructor)</h4> |
184 <b>HistoryCompletionModel</b>(<i>parent=None</i>) |
234 <b>HistoryCompletionModel</b>(<i>parent=None</i>) |
|
235 |
185 <p> |
236 <p> |
186 Constructor |
237 Constructor |
187 </p><dl> |
238 </p> |
|
239 <dl> |
|
240 |
188 <dt><i>parent</i></dt> |
241 <dt><i>parent</i></dt> |
189 <dd> |
242 <dd> |
190 reference to the parent object (QObject) |
243 reference to the parent object (QObject) |
191 </dd> |
244 </dd> |
192 </dl><a NAME="HistoryCompletionModel.data" ID="HistoryCompletionModel.data"></a> |
245 </dl> |
|
246 <a NAME="HistoryCompletionModel.data" ID="HistoryCompletionModel.data"></a> |
193 <h4>HistoryCompletionModel.data</h4> |
247 <h4>HistoryCompletionModel.data</h4> |
194 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
248 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
|
249 |
195 <p> |
250 <p> |
196 Public method to get data from the model. |
251 Public method to get data from the model. |
197 </p><dl> |
252 </p> |
|
253 <dl> |
|
254 |
198 <dt><i>index</i></dt> |
255 <dt><i>index</i></dt> |
199 <dd> |
256 <dd> |
200 index of history entry to get data for (QModelIndex) |
257 index of history entry to get data for (QModelIndex) |
201 </dd><dt><i>role</i></dt> |
258 </dd> |
|
259 <dt><i>role</i></dt> |
202 <dd> |
260 <dd> |
203 data role (integer) |
261 data role (integer) |
204 </dd> |
262 </dd> |
205 </dl><dl> |
263 </dl> |
|
264 <dl> |
206 <dt>Returns:</dt> |
265 <dt>Returns:</dt> |
207 <dd> |
266 <dd> |
208 history entry data |
267 history entry data |
209 </dd> |
268 </dd> |
210 </dl><a NAME="HistoryCompletionModel.filterAcceptsRow" ID="HistoryCompletionModel.filterAcceptsRow"></a> |
269 </dl> |
|
270 <a NAME="HistoryCompletionModel.filterAcceptsRow" ID="HistoryCompletionModel.filterAcceptsRow"></a> |
211 <h4>HistoryCompletionModel.filterAcceptsRow</h4> |
271 <h4>HistoryCompletionModel.filterAcceptsRow</h4> |
212 <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) |
272 <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) |
|
273 |
213 <p> |
274 <p> |
214 Public method to determine, if the row is acceptable. |
275 Public method to determine, if the row is acceptable. |
215 </p><dl> |
276 </p> |
|
277 <dl> |
|
278 |
216 <dt><i>sourceRow</i></dt> |
279 <dt><i>sourceRow</i></dt> |
217 <dd> |
280 <dd> |
218 row number in the source model (integer) |
281 row number in the source model (integer) |
219 </dd><dt><i>sourceParent</i></dt> |
282 </dd> |
|
283 <dt><i>sourceParent</i></dt> |
220 <dd> |
284 <dd> |
221 index of the source item (QModelIndex) |
285 index of the source item (QModelIndex) |
222 </dd> |
286 </dd> |
223 </dl><dl> |
287 </dl> |
|
288 <dl> |
224 <dt>Returns:</dt> |
289 <dt>Returns:</dt> |
225 <dd> |
290 <dd> |
226 flag indicating acceptance (boolean) |
291 flag indicating acceptance (boolean) |
227 </dd> |
292 </dd> |
228 </dl><a NAME="HistoryCompletionModel.isValid" ID="HistoryCompletionModel.isValid"></a> |
293 </dl> |
|
294 <a NAME="HistoryCompletionModel.isValid" ID="HistoryCompletionModel.isValid"></a> |
229 <h4>HistoryCompletionModel.isValid</h4> |
295 <h4>HistoryCompletionModel.isValid</h4> |
230 <b>isValid</b>(<i></i>) |
296 <b>isValid</b>(<i></i>) |
|
297 |
231 <p> |
298 <p> |
232 Public method to check the model for validity. |
299 Public method to check the model for validity. |
233 </p><dl> |
300 </p> |
|
301 <dl> |
234 <dt>Returns:</dt> |
302 <dt>Returns:</dt> |
235 <dd> |
303 <dd> |
236 flag indicating a valid status (boolean) |
304 flag indicating a valid status (boolean) |
237 </dd> |
305 </dd> |
238 </dl><a NAME="HistoryCompletionModel.lessThan" ID="HistoryCompletionModel.lessThan"></a> |
306 </dl> |
|
307 <a NAME="HistoryCompletionModel.lessThan" ID="HistoryCompletionModel.lessThan"></a> |
239 <h4>HistoryCompletionModel.lessThan</h4> |
308 <h4>HistoryCompletionModel.lessThan</h4> |
240 <b>lessThan</b>(<i>left, right</i>) |
309 <b>lessThan</b>(<i>left, right</i>) |
|
310 |
241 <p> |
311 <p> |
242 Public method used to sort the displayed items. |
312 Public method used to sort the displayed items. |
243 </p><p> |
313 </p> |
|
314 <p> |
244 It implements a special sorting function based on the history entry's |
315 It implements a special sorting function based on the history entry's |
245 frequency giving a bonus to hits that match on a word boundary so that |
316 frequency giving a bonus to hits that match on a word boundary so that |
246 e.g. "dot.python-projects.org" is a better result for typing "dot" than |
317 e.g. "dot.python-projects.org" is a better result for typing "dot" than |
247 "slashdot.org". However, it only looks for the string in the host name, |
318 "slashdot.org". However, it only looks for the string in the host name, |
248 not the entire URL, since while it makes sense to e.g. give |
319 not the entire URL, since while it makes sense to e.g. give |
249 "www.phoronix.com" a bonus for "ph", it does NOT make sense to give |
320 "www.phoronix.com" a bonus for "ph", it does NOT make sense to give |
250 "www.yadda.com/foo.php" the bonus. |
321 "www.yadda.com/foo.php" the bonus. |
251 </p><dl> |
322 </p> |
|
323 <dl> |
|
324 |
252 <dt><i>left</i></dt> |
325 <dt><i>left</i></dt> |
253 <dd> |
326 <dd> |
254 index of left item (QModelIndex) |
327 index of left item (QModelIndex) |
255 </dd><dt><i>right</i></dt> |
328 </dd> |
|
329 <dt><i>right</i></dt> |
256 <dd> |
330 <dd> |
257 index of right item (QModelIndex) |
331 index of right item (QModelIndex) |
258 </dd> |
332 </dd> |
259 </dl><dl> |
333 </dl> |
|
334 <dl> |
260 <dt>Returns:</dt> |
335 <dt>Returns:</dt> |
261 <dd> |
336 <dd> |
262 true, if left is less than right (boolean) |
337 true, if left is less than right (boolean) |
263 </dd> |
338 </dd> |
264 </dl><a NAME="HistoryCompletionModel.searchString" ID="HistoryCompletionModel.searchString"></a> |
339 </dl> |
|
340 <a NAME="HistoryCompletionModel.searchString" ID="HistoryCompletionModel.searchString"></a> |
265 <h4>HistoryCompletionModel.searchString</h4> |
341 <h4>HistoryCompletionModel.searchString</h4> |
266 <b>searchString</b>(<i></i>) |
342 <b>searchString</b>(<i></i>) |
|
343 |
267 <p> |
344 <p> |
268 Public method to get the current search string. |
345 Public method to get the current search string. |
269 </p><dl> |
346 </p> |
|
347 <dl> |
270 <dt>Returns:</dt> |
348 <dt>Returns:</dt> |
271 <dd> |
349 <dd> |
272 current search string (string) |
350 current search string (string) |
273 </dd> |
351 </dd> |
274 </dl><a NAME="HistoryCompletionModel.setSearchString" ID="HistoryCompletionModel.setSearchString"></a> |
352 </dl> |
|
353 <a NAME="HistoryCompletionModel.setSearchString" ID="HistoryCompletionModel.setSearchString"></a> |
275 <h4>HistoryCompletionModel.setSearchString</h4> |
354 <h4>HistoryCompletionModel.setSearchString</h4> |
276 <b>setSearchString</b>(<i>string</i>) |
355 <b>setSearchString</b>(<i>string</i>) |
|
356 |
277 <p> |
357 <p> |
278 Public method to set the current search string. |
358 Public method to set the current search string. |
279 </p><dl> |
359 </p> |
|
360 <dl> |
|
361 |
280 <dt><i>string</i></dt> |
362 <dt><i>string</i></dt> |
281 <dd> |
363 <dd> |
282 new search string (string) |
364 new search string (string) |
283 </dd> |
365 </dd> |
284 </dl><a NAME="HistoryCompletionModel.setValid" ID="HistoryCompletionModel.setValid"></a> |
366 </dl> |
|
367 <a NAME="HistoryCompletionModel.setValid" ID="HistoryCompletionModel.setValid"></a> |
285 <h4>HistoryCompletionModel.setValid</h4> |
368 <h4>HistoryCompletionModel.setValid</h4> |
286 <b>setValid</b>(<i>valid</i>) |
369 <b>setValid</b>(<i>valid</i>) |
|
370 |
287 <p> |
371 <p> |
288 Public method to set the model's validity. |
372 Public method to set the model's validity. |
289 </p><dl> |
373 </p> |
|
374 <dl> |
|
375 |
290 <dt><i>valid</i></dt> |
376 <dt><i>valid</i></dt> |
291 <dd> |
377 <dd> |
292 flag indicating the new valid status (boolean) |
378 flag indicating the new valid status (boolean) |
293 </dd> |
379 </dd> |
294 </dl> |
380 </dl> |
295 <div align="right"><a href="#top">Up</a></div> |
381 <div align="right"><a href="#top">Up</a></div> |
296 <hr /><hr /> |
382 <hr /> |
|
383 <hr /> |
297 <a NAME="HistoryCompletionView" ID="HistoryCompletionView"></a> |
384 <a NAME="HistoryCompletionView" ID="HistoryCompletionView"></a> |
298 <h2>HistoryCompletionView</h2> |
385 <h2>HistoryCompletionView</h2> |
|
386 |
299 <p> |
387 <p> |
300 Class implementing a special completer view for history based completions. |
388 Class implementing a special completer view for history based completions. |
301 </p> |
389 </p> |
302 <h3>Derived from</h3> |
390 <h3>Derived from</h3> |
303 QTableView |
391 QTableView |
304 <h3>Class Attributes</h3> |
392 <h3>Class Attributes</h3> |
|
393 |
305 <table> |
394 <table> |
306 <tr><td>None</td></tr> |
395 <tr><td>None</td></tr> |
307 </table> |
396 </table> |
308 <h3>Class Methods</h3> |
397 <h3>Class Methods</h3> |
|
398 |
309 <table> |
399 <table> |
310 <tr><td>None</td></tr> |
400 <tr><td>None</td></tr> |
311 </table> |
401 </table> |
312 <h3>Methods</h3> |
402 <h3>Methods</h3> |
313 <table> |
403 |
|
404 <table> |
|
405 |
314 <tr> |
406 <tr> |
315 <td><a href="#HistoryCompletionView.__init__">HistoryCompletionView</a></td> |
407 <td><a href="#HistoryCompletionView.__init__">HistoryCompletionView</a></td> |
316 <td>Constructor</td> |
408 <td>Constructor</td> |
317 </tr><tr> |
409 </tr> |
|
410 <tr> |
318 <td><a href="#HistoryCompletionView.resizeEvent">resizeEvent</a></td> |
411 <td><a href="#HistoryCompletionView.resizeEvent">resizeEvent</a></td> |
319 <td>Protected method handling resize events.</td> |
412 <td>Protected method handling resize events.</td> |
320 </tr><tr> |
413 </tr> |
|
414 <tr> |
321 <td><a href="#HistoryCompletionView.sizeHintForRow">sizeHintForRow</a></td> |
415 <td><a href="#HistoryCompletionView.sizeHintForRow">sizeHintForRow</a></td> |
322 <td>Public method to give a size hint for rows.</td> |
416 <td>Public method to give a size hint for rows.</td> |
323 </tr> |
417 </tr> |
324 </table> |
418 </table> |
325 <h3>Static Methods</h3> |
419 <h3>Static Methods</h3> |
326 <table> |
420 |
327 <tr><td>None</td></tr> |
421 <table> |
328 </table> |
422 <tr><td>None</td></tr> |
|
423 </table> |
|
424 |
329 <a NAME="HistoryCompletionView.__init__" ID="HistoryCompletionView.__init__"></a> |
425 <a NAME="HistoryCompletionView.__init__" ID="HistoryCompletionView.__init__"></a> |
330 <h4>HistoryCompletionView (Constructor)</h4> |
426 <h4>HistoryCompletionView (Constructor)</h4> |
331 <b>HistoryCompletionView</b>(<i>parent=None</i>) |
427 <b>HistoryCompletionView</b>(<i>parent=None</i>) |
|
428 |
332 <p> |
429 <p> |
333 Constructor |
430 Constructor |
334 </p><dl> |
431 </p> |
|
432 <dl> |
|
433 |
335 <dt><i>parent</i></dt> |
434 <dt><i>parent</i></dt> |
336 <dd> |
435 <dd> |
337 reference to the parent widget (QWidget) |
436 reference to the parent widget (QWidget) |
338 </dd> |
437 </dd> |
339 </dl><a NAME="HistoryCompletionView.resizeEvent" ID="HistoryCompletionView.resizeEvent"></a> |
438 </dl> |
|
439 <a NAME="HistoryCompletionView.resizeEvent" ID="HistoryCompletionView.resizeEvent"></a> |
340 <h4>HistoryCompletionView.resizeEvent</h4> |
440 <h4>HistoryCompletionView.resizeEvent</h4> |
341 <b>resizeEvent</b>(<i>evt</i>) |
441 <b>resizeEvent</b>(<i>evt</i>) |
|
442 |
342 <p> |
443 <p> |
343 Protected method handling resize events. |
444 Protected method handling resize events. |
344 </p><dl> |
445 </p> |
|
446 <dl> |
|
447 |
345 <dt><i>evt</i></dt> |
448 <dt><i>evt</i></dt> |
346 <dd> |
449 <dd> |
347 reference to the resize event (QResizeEvent) |
450 reference to the resize event (QResizeEvent) |
348 </dd> |
451 </dd> |
349 </dl><a NAME="HistoryCompletionView.sizeHintForRow" ID="HistoryCompletionView.sizeHintForRow"></a> |
452 </dl> |
|
453 <a NAME="HistoryCompletionView.sizeHintForRow" ID="HistoryCompletionView.sizeHintForRow"></a> |
350 <h4>HistoryCompletionView.sizeHintForRow</h4> |
454 <h4>HistoryCompletionView.sizeHintForRow</h4> |
351 <b>sizeHintForRow</b>(<i>row</i>) |
455 <b>sizeHintForRow</b>(<i>row</i>) |
|
456 |
352 <p> |
457 <p> |
353 Public method to give a size hint for rows. |
458 Public method to give a size hint for rows. |
354 </p><dl> |
459 </p> |
|
460 <dl> |
|
461 |
355 <dt><i>row</i></dt> |
462 <dt><i>row</i></dt> |
356 <dd> |
463 <dd> |
357 row number (integer) |
464 row number (integer) |
358 </dd> |
465 </dd> |
359 </dl><dl> |
466 </dl> |
|
467 <dl> |
360 <dt>Returns:</dt> |
468 <dt>Returns:</dt> |
361 <dd> |
469 <dd> |
362 desired row height (integer) |
470 desired row height (integer) |
363 </dd> |
471 </dd> |
364 </dl> |
472 </dl> |