|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
A list of AbstractModelItem pointers with UUID and entity-type search helpers. More...
#include <abstractmodelitem.h>
Inheritance diagram for AbstractModelItem::List:
Collaboration diagram for AbstractModelItem::List:Public Member Functions | |
| AbstractModelItem * | findByUuid (const QUuid &uuid) const |
| Find the first item with the given UUID. | |
| int | indexOfUuid (const QUuid &uuid) const |
| Return the list index of the first item with the given UUID. | |
| int | firstIndexOfEntityType (int entityType) const |
| Return the list index of the first item with the given entity type. | |
| int | lastIndexOfEntityType (int entityType) const |
| Return the list index of the last item with the given entity type. | |
| template<typename T > | |
| QList< T > | findChildItems (bool recursive=true) const |
| Find all child items castable to type T, optionally recursing. | |
A list of AbstractModelItem pointers with UUID and entity-type search helpers.
Definition at line 102 of file abstractmodelitem.h.
|
inline |
Find the first item with the given UUID.
| uuid | UUID to search for |
Definition at line 110 of file abstractmodelitem.h.
References AbstractModelItem::uuid().
|
inline |
Find all child items castable to type T, optionally recursing.
| T | Pointer type to find |
| recursive | Whether to recurse into children (default true) |
Definition at line 177 of file abstractmodelitem.h.
|
inline |
Return the list index of the first item with the given entity type.
| entityType | Entity type to search for |
Definition at line 140 of file abstractmodelitem.h.
References AbstractModelItem::entityType().
|
inline |
Return the list index of the first item with the given UUID.
| uuid | UUID to search for |
Definition at line 125 of file abstractmodelitem.h.
References AbstractModelItem::uuid().
|
inline |
Return the list index of the last item with the given entity type.
| entityType | Entity type to search for |
Definition at line 158 of file abstractmodelitem.h.
References AbstractModelItem::entityType().