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

branch
eric7
changeset 10436
f6881d10e995
parent 9209
b99e7fd55fd3
child 10479
856476537696
equal deleted inserted replaced
10435:c712d09cc839 10436:f6881d10e995
136 <p> 136 <p>
137 Constructor 137 Constructor
138 </p> 138 </p>
139 <dl> 139 <dl>
140 140
141 <dt><i>sourceModel</i></dt> 141 <dt><i>sourceModel</i> (QAbstractItemModel)</dt>
142 <dd> 142 <dd>
143 reference to the source model (QAbstractItemModel) 143 reference to the source model
144 </dd> 144 </dd>
145 <dt><i>parent</i></dt> 145 <dt><i>parent</i> (QObject)</dt>
146 <dd> 146 <dd>
147 reference to the parent object (QObject) 147 reference to the parent object
148 </dd> 148 </dd>
149 </dl> 149 </dl>
150 <a NAME="HistoryTreeModel.__sourceDateRow" ID="HistoryTreeModel.__sourceDateRow"></a> 150 <a NAME="HistoryTreeModel.__sourceDateRow" ID="HistoryTreeModel.__sourceDateRow"></a>
151 <h4>HistoryTreeModel.__sourceDateRow</h4> 151 <h4>HistoryTreeModel.__sourceDateRow</h4>
152 <b>__sourceDateRow</b>(<i>row</i>) 152 <b>__sourceDateRow</b>(<i>row</i>)
155 Private method to translate the top level date row into the offset 155 Private method to translate the top level date row into the offset
156 where that date starts. 156 where that date starts.
157 </p> 157 </p>
158 <dl> 158 <dl>
159 159
160 <dt><i>row</i></dt> 160 <dt><i>row</i> (int)</dt>
161 <dd> 161 <dd>
162 row number of the date (integer) 162 row number of the date
163 </dd> 163 </dd>
164 </dl> 164 </dl>
165 <dl> 165 <dl>
166 <dt>Return:</dt> 166 <dt>Return:</dt>
167 <dd> 167 <dd>
168 offset where that date starts (integer) 168 offset where that date starts
169 </dd>
170 </dl>
171 <dl>
172 <dt>Return Type:</dt>
173 <dd>
174 int
169 </dd> 175 </dd>
170 </dl> 176 </dl>
171 <a NAME="HistoryTreeModel.__sourceReset" ID="HistoryTreeModel.__sourceReset"></a> 177 <a NAME="HistoryTreeModel.__sourceReset" ID="HistoryTreeModel.__sourceReset"></a>
172 <h4>HistoryTreeModel.__sourceReset</h4> 178 <h4>HistoryTreeModel.__sourceReset</h4>
173 <b>__sourceReset</b>(<i></i>) 179 <b>__sourceReset</b>(<i></i>)
182 <p> 188 <p>
183 Private slot to handle the insertion of data in the source model. 189 Private slot to handle the insertion of data in the source model.
184 </p> 190 </p>
185 <dl> 191 <dl>
186 192
187 <dt><i>parent</i></dt> 193 <dt><i>parent</i> (QModelIndex)</dt>
188 <dd> 194 <dd>
189 reference to the parent index (QModelIndex) 195 reference to the parent index
190 </dd> 196 </dd>
191 <dt><i>start</i></dt> 197 <dt><i>start</i> (int)</dt>
192 <dd> 198 <dd>
193 start row (integer) 199 start row
194 </dd> 200 </dd>
195 <dt><i>end</i></dt> 201 <dt><i>end</i> (int)</dt>
196 <dd> 202 <dd>
197 end row (integer) 203 end row
198 </dd> 204 </dd>
199 </dl> 205 </dl>
200 <a NAME="HistoryTreeModel.__sourceRowsRemoved" ID="HistoryTreeModel.__sourceRowsRemoved"></a> 206 <a NAME="HistoryTreeModel.__sourceRowsRemoved" ID="HistoryTreeModel.__sourceRowsRemoved"></a>
201 <h4>HistoryTreeModel.__sourceRowsRemoved</h4> 207 <h4>HistoryTreeModel.__sourceRowsRemoved</h4>
202 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>) 208 <b>__sourceRowsRemoved</b>(<i>parent, start, end</i>)
204 <p> 210 <p>
205 Private slot to handle the removal of data in the source model. 211 Private slot to handle the removal of data in the source model.
206 </p> 212 </p>
207 <dl> 213 <dl>
208 214
209 <dt><i>parent</i></dt> 215 <dt><i>parent</i> (QModelIndex)</dt>
210 <dd> 216 <dd>
211 reference to the parent index (QModelIndex) 217 reference to the parent index
212 </dd> 218 </dd>
213 <dt><i>start</i></dt> 219 <dt><i>start</i> (int)</dt>
214 <dd> 220 <dd>
215 start row (integer) 221 start row
216 </dd> 222 </dd>
217 <dt><i>end</i></dt> 223 <dt><i>end</i> (int)</dt>
218 <dd> 224 <dd>
219 end row (integer) 225 end row
220 </dd> 226 </dd>
221 </dl> 227 </dl>
222 <a NAME="HistoryTreeModel.columnCount" ID="HistoryTreeModel.columnCount"></a> 228 <a NAME="HistoryTreeModel.columnCount" ID="HistoryTreeModel.columnCount"></a>
223 <h4>HistoryTreeModel.columnCount</h4> 229 <h4>HistoryTreeModel.columnCount</h4>
224 <b>columnCount</b>(<i>parent=None</i>) 230 <b>columnCount</b>(<i>parent=None</i>)
226 <p> 232 <p>
227 Public method to get the number of columns. 233 Public method to get the number of columns.
228 </p> 234 </p>
229 <dl> 235 <dl>
230 236
231 <dt><i>parent</i></dt> 237 <dt><i>parent</i> (QModelIndex)</dt>
232 <dd> 238 <dd>
233 index of parent (QModelIndex) 239 index of parent
234 </dd> 240 </dd>
235 </dl> 241 </dl>
236 <dl> 242 <dl>
237 <dt>Return:</dt> 243 <dt>Return:</dt>
238 <dd> 244 <dd>
239 number of columns (integer) 245 number of columns
246 </dd>
247 </dl>
248 <dl>
249 <dt>Return Type:</dt>
250 <dd>
251 int
240 </dd> 252 </dd>
241 </dl> 253 </dl>
242 <a NAME="HistoryTreeModel.data" ID="HistoryTreeModel.data"></a> 254 <a NAME="HistoryTreeModel.data" ID="HistoryTreeModel.data"></a>
243 <h4>HistoryTreeModel.data</h4> 255 <h4>HistoryTreeModel.data</h4>
244 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>) 256 <b>data</b>(<i>index, role=Qt.ItemDataRole.DisplayRole</i>)
246 <p> 258 <p>
247 Public method to get data from the model. 259 Public method to get data from the model.
248 </p> 260 </p>
249 <dl> 261 <dl>
250 262
251 <dt><i>index</i></dt> 263 <dt><i>index</i> (QModelIndex)</dt>
252 <dd> 264 <dd>
253 index of history entry to get data for (QModelIndex) 265 index of history entry to get data for
254 </dd> 266 </dd>
255 <dt><i>role</i></dt> 267 <dt><i>role</i> (int)</dt>
256 <dd> 268 <dd>
257 data role (integer) 269 data role
258 </dd> 270 </dd>
259 </dl> 271 </dl>
260 <dl> 272 <dl>
261 <dt>Return:</dt> 273 <dt>Return:</dt>
262 <dd> 274 <dd>
263 history entry data 275 history entry data
276 </dd>
277 </dl>
278 <dl>
279 <dt>Return Type:</dt>
280 <dd>
281 Any
264 </dd> 282 </dd>
265 </dl> 283 </dl>
266 <a NAME="HistoryTreeModel.flags" ID="HistoryTreeModel.flags"></a> 284 <a NAME="HistoryTreeModel.flags" ID="HistoryTreeModel.flags"></a>
267 <h4>HistoryTreeModel.flags</h4> 285 <h4>HistoryTreeModel.flags</h4>
268 <b>flags</b>(<i>index</i>) 286 <b>flags</b>(<i>index</i>)
270 <p> 288 <p>
271 Public method to get the item flags. 289 Public method to get the item flags.
272 </p> 290 </p>
273 <dl> 291 <dl>
274 292
275 <dt><i>index</i></dt> 293 <dt><i>index</i> (QModelIndex)</dt>
276 <dd> 294 <dd>
277 index of the item (QModelIndex) 295 index of the item
278 </dd> 296 </dd>
279 </dl> 297 </dl>
280 <dl> 298 <dl>
281 <dt>Return:</dt> 299 <dt>Return:</dt>
282 <dd> 300 <dd>
283 flags (Qt.ItemFlags) 301 flags
302 </dd>
303 </dl>
304 <dl>
305 <dt>Return Type:</dt>
306 <dd>
307 Qt.ItemFlags
284 </dd> 308 </dd>
285 </dl> 309 </dl>
286 <a NAME="HistoryTreeModel.hasChildren" ID="HistoryTreeModel.hasChildren"></a> 310 <a NAME="HistoryTreeModel.hasChildren" ID="HistoryTreeModel.hasChildren"></a>
287 <h4>HistoryTreeModel.hasChildren</h4> 311 <h4>HistoryTreeModel.hasChildren</h4>
288 <b>hasChildren</b>(<i>parent=None</i>) 312 <b>hasChildren</b>(<i>parent=None</i>)
290 <p> 314 <p>
291 Public method to check, if an entry has some children. 315 Public method to check, if an entry has some children.
292 </p> 316 </p>
293 <dl> 317 <dl>
294 318
295 <dt><i>parent</i></dt> 319 <dt><i>parent</i> (QModelIndex)</dt>
296 <dd> 320 <dd>
297 index of the entry to check (QModelIndex) 321 index of the entry to check
298 </dd> 322 </dd>
299 </dl> 323 </dl>
300 <dl> 324 <dl>
301 <dt>Return:</dt> 325 <dt>Return:</dt>
302 <dd> 326 <dd>
303 flag indicating the presence of children (boolean) 327 flag indicating the presence of children
328 </dd>
329 </dl>
330 <dl>
331 <dt>Return Type:</dt>
332 <dd>
333 bool
304 </dd> 334 </dd>
305 </dl> 335 </dl>
306 <a NAME="HistoryTreeModel.headerData" ID="HistoryTreeModel.headerData"></a> 336 <a NAME="HistoryTreeModel.headerData" ID="HistoryTreeModel.headerData"></a>
307 <h4>HistoryTreeModel.headerData</h4> 337 <h4>HistoryTreeModel.headerData</h4>
308 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>) 338 <b>headerData</b>(<i>section, orientation, role=Qt.ItemDataRole.DisplayRole</i>)
310 <p> 340 <p>
311 Public method to get the header data. 341 Public method to get the header data.
312 </p> 342 </p>
313 <dl> 343 <dl>
314 344
315 <dt><i>section</i></dt> 345 <dt><i>section</i> (int)</dt>
316 <dd> 346 <dd>
317 section number (integer) 347 section number
318 </dd> 348 </dd>
319 <dt><i>orientation</i></dt> 349 <dt><i>orientation</i> (Qt.Orientation)</dt>
320 <dd> 350 <dd>
321 header orientation (Qt.Orientation) 351 header orientation
322 </dd> 352 </dd>
323 <dt><i>role</i></dt> 353 <dt><i>role</i> (Qt.ItemDataRole)</dt>
324 <dd> 354 <dd>
325 data role (Qt.ItemDataRole) 355 data role
326 </dd> 356 </dd>
327 </dl> 357 </dl>
328 <dl> 358 <dl>
329 <dt>Return:</dt> 359 <dt>Return:</dt>
330 <dd> 360 <dd>
331 header data 361 header data
362 </dd>
363 </dl>
364 <dl>
365 <dt>Return Type:</dt>
366 <dd>
367 Any
332 </dd> 368 </dd>
333 </dl> 369 </dl>
334 <a NAME="HistoryTreeModel.index" ID="HistoryTreeModel.index"></a> 370 <a NAME="HistoryTreeModel.index" ID="HistoryTreeModel.index"></a>
335 <h4>HistoryTreeModel.index</h4> 371 <h4>HistoryTreeModel.index</h4>
336 <b>index</b>(<i>row, column, parent=None</i>) 372 <b>index</b>(<i>row, column, parent=None</i>)
338 <p> 374 <p>
339 Public method to create an index. 375 Public method to create an index.
340 </p> 376 </p>
341 <dl> 377 <dl>
342 378
343 <dt><i>row</i></dt> 379 <dt><i>row</i> (int)</dt>
344 <dd> 380 <dd>
345 row number for the index (integer) 381 row number for the index
346 </dd> 382 </dd>
347 <dt><i>column</i></dt> 383 <dt><i>column</i> (int)</dt>
348 <dd> 384 <dd>
349 column number for the index (integer) 385 column number for the index
350 </dd> 386 </dd>
351 <dt><i>parent</i></dt> 387 <dt><i>parent</i> (QModelIndex)</dt>
352 <dd> 388 <dd>
353 index of the parent item (QModelIndex) 389 index of the parent item
354 </dd> 390 </dd>
355 </dl> 391 </dl>
356 <dl> 392 <dl>
357 <dt>Return:</dt> 393 <dt>Return:</dt>
358 <dd> 394 <dd>
359 requested index (QModelIndex) 395 requested index
396 </dd>
397 </dl>
398 <dl>
399 <dt>Return Type:</dt>
400 <dd>
401 QModelIndex
360 </dd> 402 </dd>
361 </dl> 403 </dl>
362 <a NAME="HistoryTreeModel.mapFromSource" ID="HistoryTreeModel.mapFromSource"></a> 404 <a NAME="HistoryTreeModel.mapFromSource" ID="HistoryTreeModel.mapFromSource"></a>
363 <h4>HistoryTreeModel.mapFromSource</h4> 405 <h4>HistoryTreeModel.mapFromSource</h4>
364 <b>mapFromSource</b>(<i>sourceIndex</i>) 406 <b>mapFromSource</b>(<i>sourceIndex</i>)
366 <p> 408 <p>
367 Public method to map an index to the proxy model index. 409 Public method to map an index to the proxy model index.
368 </p> 410 </p>
369 <dl> 411 <dl>
370 412
371 <dt><i>sourceIndex</i></dt> 413 <dt><i>sourceIndex</i> (QModelIndex)</dt>
372 <dd> 414 <dd>
373 reference to a source model index (QModelIndex) 415 reference to a source model index
374 </dd> 416 </dd>
375 </dl> 417 </dl>
376 <dl> 418 <dl>
377 <dt>Return:</dt> 419 <dt>Return:</dt>
378 <dd> 420 <dd>
379 proxy model index (QModelIndex) 421 proxy model index
422 </dd>
423 </dl>
424 <dl>
425 <dt>Return Type:</dt>
426 <dd>
427 QModelIndex
380 </dd> 428 </dd>
381 </dl> 429 </dl>
382 <a NAME="HistoryTreeModel.mapToSource" ID="HistoryTreeModel.mapToSource"></a> 430 <a NAME="HistoryTreeModel.mapToSource" ID="HistoryTreeModel.mapToSource"></a>
383 <h4>HistoryTreeModel.mapToSource</h4> 431 <h4>HistoryTreeModel.mapToSource</h4>
384 <b>mapToSource</b>(<i>proxyIndex</i>) 432 <b>mapToSource</b>(<i>proxyIndex</i>)
386 <p> 434 <p>
387 Public method to map an index to the source model index. 435 Public method to map an index to the source model index.
388 </p> 436 </p>
389 <dl> 437 <dl>
390 438
391 <dt><i>proxyIndex</i></dt> 439 <dt><i>proxyIndex</i> (QModelIndex)</dt>
392 <dd> 440 <dd>
393 reference to a proxy model index (QModelIndex) 441 reference to a proxy model index
394 </dd> 442 </dd>
395 </dl> 443 </dl>
396 <dl> 444 <dl>
397 <dt>Return:</dt> 445 <dt>Return:</dt>
398 <dd> 446 <dd>
399 source model index (QModelIndex) 447 source model index
448 </dd>
449 </dl>
450 <dl>
451 <dt>Return Type:</dt>
452 <dd>
453 QModelIndex
400 </dd> 454 </dd>
401 </dl> 455 </dl>
402 <a NAME="HistoryTreeModel.parent" ID="HistoryTreeModel.parent"></a> 456 <a NAME="HistoryTreeModel.parent" ID="HistoryTreeModel.parent"></a>
403 <h4>HistoryTreeModel.parent</h4> 457 <h4>HistoryTreeModel.parent</h4>
404 <b>parent</b>(<i>index</i>) 458 <b>parent</b>(<i>index</i>)
406 <p> 460 <p>
407 Public method to get the parent index. 461 Public method to get the parent index.
408 </p> 462 </p>
409 <dl> 463 <dl>
410 464
411 <dt><i>index</i></dt> 465 <dt><i>index</i> (QModelIndex)</dt>
412 <dd> 466 <dd>
413 index of item to get parent (QModelIndex) 467 index of item to get parent
414 </dd> 468 </dd>
415 </dl> 469 </dl>
416 <dl> 470 <dl>
417 <dt>Return:</dt> 471 <dt>Return:</dt>
418 <dd> 472 <dd>
419 index of parent (QModelIndex) 473 index of parent
474 </dd>
475 </dl>
476 <dl>
477 <dt>Return Type:</dt>
478 <dd>
479 QModelIndex
420 </dd> 480 </dd>
421 </dl> 481 </dl>
422 <a NAME="HistoryTreeModel.removeRows" ID="HistoryTreeModel.removeRows"></a> 482 <a NAME="HistoryTreeModel.removeRows" ID="HistoryTreeModel.removeRows"></a>
423 <h4>HistoryTreeModel.removeRows</h4> 483 <h4>HistoryTreeModel.removeRows</h4>
424 <b>removeRows</b>(<i>row, count, parent=None</i>) 484 <b>removeRows</b>(<i>row, count, parent=None</i>)
426 <p> 486 <p>
427 Public method to remove entries from the model. 487 Public method to remove entries from the model.
428 </p> 488 </p>
429 <dl> 489 <dl>
430 490
431 <dt><i>row</i></dt> 491 <dt><i>row</i> (int)</dt>
432 <dd> 492 <dd>
433 row of the first entry to remove (integer) 493 row of the first entry to remove
434 </dd> 494 </dd>
435 <dt><i>count</i></dt> 495 <dt><i>count</i> (int)</dt>
436 <dd> 496 <dd>
437 number of entries to remove (integer) 497 number of entries to remove
438 </dd> 498 </dd>
439 <dt><i>parent</i></dt> 499 <dt><i>parent</i> (QModelIndex)</dt>
440 <dd> 500 <dd>
441 index of the parent entry (QModelIndex) 501 index of the parent entry
442 </dd> 502 </dd>
443 </dl> 503 </dl>
444 <dl> 504 <dl>
445 <dt>Return:</dt> 505 <dt>Return:</dt>
446 <dd> 506 <dd>
447 flag indicating successful removal (boolean) 507 flag indicating successful removal
508 </dd>
509 </dl>
510 <dl>
511 <dt>Return Type:</dt>
512 <dd>
513 bool
448 </dd> 514 </dd>
449 </dl> 515 </dl>
450 <a NAME="HistoryTreeModel.rowCount" ID="HistoryTreeModel.rowCount"></a> 516 <a NAME="HistoryTreeModel.rowCount" ID="HistoryTreeModel.rowCount"></a>
451 <h4>HistoryTreeModel.rowCount</h4> 517 <h4>HistoryTreeModel.rowCount</h4>
452 <b>rowCount</b>(<i>parent=None</i>) 518 <b>rowCount</b>(<i>parent=None</i>)
454 <p> 520 <p>
455 Public method to determine the number of rows. 521 Public method to determine the number of rows.
456 </p> 522 </p>
457 <dl> 523 <dl>
458 524
459 <dt><i>parent</i></dt> 525 <dt><i>parent</i> (QModelIndex)</dt>
460 <dd> 526 <dd>
461 index of parent (QModelIndex) 527 index of parent
462 </dd> 528 </dd>
463 </dl> 529 </dl>
464 <dl> 530 <dl>
465 <dt>Return:</dt> 531 <dt>Return:</dt>
466 <dd> 532 <dd>
467 number of rows (integer) 533 number of rows
534 </dd>
535 </dl>
536 <dl>
537 <dt>Return Type:</dt>
538 <dd>
539 int
468 </dd> 540 </dd>
469 </dl> 541 </dl>
470 <a NAME="HistoryTreeModel.setSourceModel" ID="HistoryTreeModel.setSourceModel"></a> 542 <a NAME="HistoryTreeModel.setSourceModel" ID="HistoryTreeModel.setSourceModel"></a>
471 <h4>HistoryTreeModel.setSourceModel</h4> 543 <h4>HistoryTreeModel.setSourceModel</h4>
472 <b>setSourceModel</b>(<i>sourceModel</i>) 544 <b>setSourceModel</b>(<i>sourceModel</i>)
474 <p> 546 <p>
475 Public method to set the source model. 547 Public method to set the source model.
476 </p> 548 </p>
477 <dl> 549 <dl>
478 550
479 <dt><i>sourceModel</i></dt> 551 <dt><i>sourceModel</i> (QAbstractItemModel)</dt>
480 <dd> 552 <dd>
481 reference to the source model (QAbstractItemModel) 553 reference to the source model
482 </dd> 554 </dd>
483 </dl> 555 </dl>
484 <div align="right"><a href="#top">Up</a></div> 556 <div align="right"><a href="#top">Up</a></div>
485 <hr /> 557 <hr />
486 </body></html> 558 </body></html>

eric ide

mercurial