71 <td>Public method to split the given path into strings, that are used to match at each level in the model.</td> |
71 <td>Public method to split the given path into strings, that are used to match at each level in the model.</td> |
72 </tr> |
72 </tr> |
73 </table> |
73 </table> |
74 <a NAME="HistoryCompleter.__init__" ID="HistoryCompleter.__init__"></a> |
74 <a NAME="HistoryCompleter.__init__" ID="HistoryCompleter.__init__"></a> |
75 <h4>HistoryCompleter (Constructor)</h4> |
75 <h4>HistoryCompleter (Constructor)</h4> |
76 <b>HistoryCompleter</b>(<i>model, parent = None</i>) |
76 <b>HistoryCompleter</b>(<i>model, parent=None</i>) |
77 <p> |
77 <p> |
78 Constructor |
78 Constructor |
79 </p><dl> |
79 </p><dl> |
80 <dt><i>model</i></dt> |
80 <dt><i>model</i></dt> |
81 <dd> |
81 <dd> |
162 <td>Public method to set the model's validity.</td> |
162 <td>Public method to set the model's validity.</td> |
163 </tr> |
163 </tr> |
164 </table> |
164 </table> |
165 <a NAME="HistoryCompletionModel.__init__" ID="HistoryCompletionModel.__init__"></a> |
165 <a NAME="HistoryCompletionModel.__init__" ID="HistoryCompletionModel.__init__"></a> |
166 <h4>HistoryCompletionModel (Constructor)</h4> |
166 <h4>HistoryCompletionModel (Constructor)</h4> |
167 <b>HistoryCompletionModel</b>(<i>parent = None</i>) |
167 <b>HistoryCompletionModel</b>(<i>parent=None</i>) |
168 <p> |
168 <p> |
169 Constructor |
169 Constructor |
170 </p><dl> |
170 </p><dl> |
171 <dt><i>parent</i></dt> |
171 <dt><i>parent</i></dt> |
172 <dd> |
172 <dd> |
173 reference to the parent object (QObject) |
173 reference to the parent object (QObject) |
174 </dd> |
174 </dd> |
175 </dl><a NAME="HistoryCompletionModel.data" ID="HistoryCompletionModel.data"></a> |
175 </dl><a NAME="HistoryCompletionModel.data" ID="HistoryCompletionModel.data"></a> |
176 <h4>HistoryCompletionModel.data</h4> |
176 <h4>HistoryCompletionModel.data</h4> |
177 <b>data</b>(<i>index, role = Qt.DisplayRole</i>) |
177 <b>data</b>(<i>index, role=Qt.DisplayRole</i>) |
178 <p> |
178 <p> |
179 Public method to get data from the model. |
179 Public method to get data from the model. |
180 </p><dl> |
180 </p><dl> |
181 <dt><i>index</i></dt> |
181 <dt><i>index</i></dt> |
182 <dd> |
182 <dd> |
222 <h4>HistoryCompletionModel.lessThan</h4> |
222 <h4>HistoryCompletionModel.lessThan</h4> |
223 <b>lessThan</b>(<i>left, right</i>) |
223 <b>lessThan</b>(<i>left, right</i>) |
224 <p> |
224 <p> |
225 Protected method used to sort the displayed items. |
225 Protected method used to sort the displayed items. |
226 </p><p> |
226 </p><p> |
227 It implements a special sorting function based on the history entry's |
227 It implements a special sorting function based on the history entry's |
228 frequency giving a bonus to hits that match on a word boundary so that |
228 frequency giving a bonus to hits that match on a word boundary so that |
229 e.g. "dot.python-projects.org" is a better result for typing "dot" than |
229 e.g. "dot.python-projects.org" is a better result for typing "dot" than |
230 "slashdot.org". However, it only looks for the string in the host name, |
230 "slashdot.org". However, it only looks for the string in the host name, |
231 not the entire URL, since while it makes sense to e.g. give |
231 not the entire URL, since while it makes sense to e.g. give |
232 "www.phoronix.com" a bonus for "ph", it does NOT make sense to give |
232 "www.phoronix.com" a bonus for "ph", it does NOT make sense to give |
301 <td>Public method to give a size hint for rows.</td> |
301 <td>Public method to give a size hint for rows.</td> |
302 </tr> |
302 </tr> |
303 </table> |
303 </table> |
304 <a NAME="HistoryCompletionView.__init__" ID="HistoryCompletionView.__init__"></a> |
304 <a NAME="HistoryCompletionView.__init__" ID="HistoryCompletionView.__init__"></a> |
305 <h4>HistoryCompletionView (Constructor)</h4> |
305 <h4>HistoryCompletionView (Constructor)</h4> |
306 <b>HistoryCompletionView</b>(<i>parent = None</i>) |
306 <b>HistoryCompletionView</b>(<i>parent=None</i>) |
307 <p> |
307 <p> |
308 Constructor |
308 Constructor |
309 </p><dl> |
309 </p><dl> |
310 <dt><i>parent</i></dt> |
310 <dt><i>parent</i></dt> |
311 <dd> |
311 <dd> |