src/eric7/Documentation/Source/eric7.WebBrowser.OpenSearch.OpenSearchEngineModel.html

branch
eric7
changeset 10479
856476537696
parent 10436
f6881d10e995
child 10684
58c7f23ae1cb
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.OpenSearch.OpenSearchEngineModel</h1> 9 <h1>eric7.WebBrowser.OpenSearch.OpenSearchEngineModel</h1>
10
11 <p> 10 <p>
12 Module implementing a model for search engines. 11 Module implementing a model for search engines.
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="#OpenSearchEngineModel">OpenSearchEngineModel</a></td> 22 <td><a href="#OpenSearchEngineModel">OpenSearchEngineModel</a></td>
25 <td>Class implementing a model for search engines.</td> 23 <td>Class implementing a model for search engines.</td>
26 </tr> 24 </tr>
27 </table> 25 </table>
26
28 <h3>Functions</h3> 27 <h3>Functions</h3>
29 28 <table>
30 <table> 29 <tr><td>None</td></tr>
31 <tr><td>None</td></tr> 30 </table>
32 </table> 31
33 <hr /> 32 <hr />
34 <hr /> 33 <hr />
35 <a NAME="OpenSearchEngineModel" ID="OpenSearchEngineModel"></a> 34 <a NAME="OpenSearchEngineModel" ID="OpenSearchEngineModel"></a>
36 <h2>OpenSearchEngineModel</h2> 35 <h2>OpenSearchEngineModel</h2>
37
38 <p> 36 <p>
39 Class implementing a model for search engines. 37 Class implementing a model for search engines.
40 </p> 38 </p>
39
41 <h3>Derived from</h3> 40 <h3>Derived from</h3>
42 QAbstractTableModel 41 QAbstractTableModel
43 <h3>Class Attributes</h3> 42 <h3>Class Attributes</h3>
44 43 <table>
45 <table> 44 <tr><td>None</td></tr>
46 <tr><td>None</td></tr> 45 </table>
47 </table> 46
48 <h3>Class Methods</h3> 47 <h3>Class Methods</h3>
49 48 <table>
50 <table> 49 <tr><td>None</td></tr>
51 <tr><td>None</td></tr> 50 </table>
52 </table> 51
53 <h3>Methods</h3> 52 <h3>Methods</h3>
54 53 <table>
55 <table>
56
57 <tr> 54 <tr>
58 <td><a href="#OpenSearchEngineModel.__init__">OpenSearchEngineModel</a></td> 55 <td><a href="#OpenSearchEngineModel.__init__">OpenSearchEngineModel</a></td>
59 <td>Constructor</td> 56 <td>Constructor</td>
60 </tr> 57 </tr>
61 <tr> 58 <tr>
89 <tr> 86 <tr>
90 <td><a href="#OpenSearchEngineModel.setData">setData</a></td> 87 <td><a href="#OpenSearchEngineModel.setData">setData</a></td>
91 <td>Public method to set the data of a model cell.</td> 88 <td>Public method to set the data of a model cell.</td>
92 </tr> 89 </tr>
93 </table> 90 </table>
91
94 <h3>Static Methods</h3> 92 <h3>Static Methods</h3>
95 93 <table>
96 <table> 94 <tr><td>None</td></tr>
97 <tr><td>None</td></tr> 95 </table>
98 </table> 96
99 97
100 <a NAME="OpenSearchEngineModel.__init__" ID="OpenSearchEngineModel.__init__"></a> 98 <a NAME="OpenSearchEngineModel.__init__" ID="OpenSearchEngineModel.__init__"></a>
101 <h4>OpenSearchEngineModel (Constructor)</h4> 99 <h4>OpenSearchEngineModel (Constructor)</h4>
102 <b>OpenSearchEngineModel</b>(<i>manager, parent=None</i>) 100 <b>OpenSearchEngineModel</b>(<i>manager, parent=None</i>)
103
104 <p> 101 <p>
105 Constructor 102 Constructor
106 </p> 103 </p>
104
107 <dl> 105 <dl>
108 106
109 <dt><i>manager</i> (OpenSearchManager)</dt> 107 <dt><i>manager</i> (OpenSearchManager)</dt>
110 <dd> 108 <dd>
111 reference to the search engine manager 109 reference to the search engine manager
116 </dd> 114 </dd>
117 </dl> 115 </dl>
118 <a NAME="OpenSearchEngineModel.__enginesChanged" ID="OpenSearchEngineModel.__enginesChanged"></a> 116 <a NAME="OpenSearchEngineModel.__enginesChanged" ID="OpenSearchEngineModel.__enginesChanged"></a>
119 <h4>OpenSearchEngineModel.__enginesChanged</h4> 117 <h4>OpenSearchEngineModel.__enginesChanged</h4>
120 <b>__enginesChanged</b>(<i></i>) 118 <b>__enginesChanged</b>(<i></i>)
121
122 <p> 119 <p>
123 Private slot handling a change of the registered engines. 120 Private slot handling a change of the registered engines.
124 </p> 121 </p>
122
125 <a NAME="OpenSearchEngineModel.columnCount" ID="OpenSearchEngineModel.columnCount"></a> 123 <a NAME="OpenSearchEngineModel.columnCount" ID="OpenSearchEngineModel.columnCount"></a>
126 <h4>OpenSearchEngineModel.columnCount</h4> 124 <h4>OpenSearchEngineModel.columnCount</h4>
127 <b>columnCount</b>(<i>parent=None</i>) 125 <b>columnCount</b>(<i>parent=None</i>)
128
129 <p> 126 <p>
130 Public method to get the number of columns of the model. 127 Public method to get the number of columns of the model.
131 </p> 128 </p>
129
132 <dl> 130 <dl>
133 131
134 <dt><i>parent</i> (QModelIndex)</dt> 132 <dt><i>parent</i> (QModelIndex)</dt>
135 <dd> 133 <dd>
136 parent index (Unused) 134 parent index (Unused)
149 </dd> 147 </dd>
150 </dl> 148 </dl>
151 <a NAME="OpenSearchEngineModel.data" ID="OpenSearchEngineModel.data"></a> 149 <a NAME="OpenSearchEngineModel.data" ID="OpenSearchEngineModel.data"></a>
152 <h4>OpenSearchEngineModel.data</h4> 150 <h4>OpenSearchEngineModel.data</h4>
153 <b>data</b>(<i>index, role</i>) 151 <b>data</b>(<i>index, role</i>)
154
155 <p> 152 <p>
156 Public method to get data from the model. 153 Public method to get data from the model.
157 </p> 154 </p>
155
158 <dl> 156 <dl>
159 157
160 <dt><i>index</i> (QModelIndex)</dt> 158 <dt><i>index</i> (QModelIndex)</dt>
161 <dd> 159 <dd>
162 index to get data for 160 index to get data for
179 </dd> 177 </dd>
180 </dl> 178 </dl>
181 <a NAME="OpenSearchEngineModel.flags" ID="OpenSearchEngineModel.flags"></a> 179 <a NAME="OpenSearchEngineModel.flags" ID="OpenSearchEngineModel.flags"></a>
182 <h4>OpenSearchEngineModel.flags</h4> 180 <h4>OpenSearchEngineModel.flags</h4>
183 <b>flags</b>(<i>index</i>) 181 <b>flags</b>(<i>index</i>)
184
185 <p> 182 <p>
186 Public method to get flags for a model cell. 183 Public method to get flags for a model cell.
187 </p> 184 </p>
185
188 <dl> 186 <dl>
189 187
190 <dt><i>index</i> (QModelIndex)</dt> 188 <dt><i>index</i> (QModelIndex)</dt>
191 <dd> 189 <dd>
192 index of the model cell 190 index of the model cell
205 </dd> 203 </dd>
206 </dl> 204 </dl>
207 <a NAME="OpenSearchEngineModel.headerData" ID="OpenSearchEngineModel.headerData"></a> 205 <a NAME="OpenSearchEngineModel.headerData" ID="OpenSearchEngineModel.headerData"></a>
208 <h4>OpenSearchEngineModel.headerData</h4> 206 <h4>OpenSearchEngineModel.headerData</h4>
209 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) 207 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
210
211 <p> 208 <p>
212 Public method to get the header data. 209 Public method to get the header data.
213 </p> 210 </p>
211
214 <dl> 212 <dl>
215 213
216 <dt><i>section</i> (int)</dt> 214 <dt><i>section</i> (int)</dt>
217 <dd> 215 <dd>
218 section number 216 section number
239 </dd> 237 </dd>
240 </dl> 238 </dl>
241 <a NAME="OpenSearchEngineModel.removeRows" ID="OpenSearchEngineModel.removeRows"></a> 239 <a NAME="OpenSearchEngineModel.removeRows" ID="OpenSearchEngineModel.removeRows"></a>
242 <h4>OpenSearchEngineModel.removeRows</h4> 240 <h4>OpenSearchEngineModel.removeRows</h4>
243 <b>removeRows</b>(<i>row, count, parent=None</i>) 241 <b>removeRows</b>(<i>row, count, parent=None</i>)
244
245 <p> 242 <p>
246 Public method to remove entries from the model. 243 Public method to remove entries from the model.
247 </p> 244 </p>
245
248 <dl> 246 <dl>
249 247
250 <dt><i>row</i> (int)</dt> 248 <dt><i>row</i> (int)</dt>
251 <dd> 249 <dd>
252 start row 250 start row
273 </dd> 271 </dd>
274 </dl> 272 </dl>
275 <a NAME="OpenSearchEngineModel.rowCount" ID="OpenSearchEngineModel.rowCount"></a> 273 <a NAME="OpenSearchEngineModel.rowCount" ID="OpenSearchEngineModel.rowCount"></a>
276 <h4>OpenSearchEngineModel.rowCount</h4> 274 <h4>OpenSearchEngineModel.rowCount</h4>
277 <b>rowCount</b>(<i>parent=None</i>) 275 <b>rowCount</b>(<i>parent=None</i>)
278
279 <p> 276 <p>
280 Public method to get the number of rows of the model. 277 Public method to get the number of rows of the model.
281 </p> 278 </p>
279
282 <dl> 280 <dl>
283 281
284 <dt><i>parent</i> (QModelIndex)</dt> 282 <dt><i>parent</i> (QModelIndex)</dt>
285 <dd> 283 <dd>
286 parent index 284 parent index
299 </dd> 297 </dd>
300 </dl> 298 </dl>
301 <a NAME="OpenSearchEngineModel.setData" ID="OpenSearchEngineModel.setData"></a> 299 <a NAME="OpenSearchEngineModel.setData" ID="OpenSearchEngineModel.setData"></a>
302 <h4>OpenSearchEngineModel.setData</h4> 300 <h4>OpenSearchEngineModel.setData</h4>
303 <b>setData</b>(<i>index, value, role=Qt.ItemDataRole.EditRole</i>) 301 <b>setData</b>(<i>index, value, role=Qt.ItemDataRole.EditRole</i>)
304
305 <p> 302 <p>
306 Public method to set the data of a model cell. 303 Public method to set the data of a model cell.
307 </p> 304 </p>
305
308 <dl> 306 <dl>
309 307
310 <dt><i>index</i> (QModelIndex)</dt> 308 <dt><i>index</i> (QModelIndex)</dt>
311 <dd> 309 <dd>
312 index of the model cell 310 index of the model cell

eric ide

mercurial