![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
#include "modelitem.h"
Inheritance diagram for LeechCraft::Util::ModelItem:
Collaboration diagram for LeechCraft::Util::ModelItem:Public Types | |
| typedef ModelItemsList_t::iterator | iterator |
| typedef ModelItemsList_t::const_iterator | const_iterator |
Public Member Functions | |
| ModelItem () | |
| ModelItem (QAbstractItemModel *model, const QModelIndex &idx, const ModelItem_wtr &parent) | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| ModelItem_ptr | GetChild (int row) const |
| const ModelItemsList_t & | GetChildren () const |
| int | GetRowCount () const |
| ModelItem * | EnsureChild (int row) |
| iterator | EraseChild (iterator it) |
| iterator | EraseChildren (iterator begin, iterator end) |
| template<typename... Args> | |
| void | AppendChild (Args &&...args) |
| template<typename... Args> | |
| void | InsertChild (int pos, Args &&...args) |
| const QModelIndex & | GetIndex () const |
| void | RefreshIndex (int modelStartingRow) |
| QAbstractItemModel * | GetModel () const |
| ModelItem_ptr | GetParent () const |
| int | GetRow (const ModelItem_ptr &item) const |
| int | GetRow (const ModelItem_cptr &item) const |
| int | GetRow () const |
| ModelItem_ptr | FindChild (QModelIndex index) const |
Definition at line 48 of file modelitem.h.
| typedef ModelItemsList_t::const_iterator LeechCraft::Util::ModelItem::const_iterator |
Definition at line 57 of file modelitem.h.
| typedef ModelItemsList_t::iterator LeechCraft::Util::ModelItem::iterator |
Definition at line 56 of file modelitem.h.
| LeechCraft::Util::ModelItem::ModelItem | ( | ) |
Definition at line 37 of file modelitem.cpp.
| LeechCraft::Util::ModelItem::ModelItem | ( | QAbstractItemModel * | model, |
| const QModelIndex & | idx, | ||
| const ModelItem_wtr & | parent | ||
| ) |
Definition at line 42 of file modelitem.cpp.
|
inline |
Definition at line 77 of file modelitem.h.
| ModelItem::iterator LeechCraft::Util::ModelItem::begin | ( | ) |
Definition at line 49 of file modelitem.cpp.
| ModelItem::const_iterator LeechCraft::Util::ModelItem::begin | ( | ) | const |
Definition at line 59 of file modelitem.cpp.
| ModelItem::iterator LeechCraft::Util::ModelItem::end | ( | ) |
Definition at line 54 of file modelitem.cpp.
| ModelItem::const_iterator LeechCraft::Util::ModelItem::end | ( | ) | const |
Definition at line 64 of file modelitem.cpp.
| ModelItem * LeechCraft::Util::ModelItem::EnsureChild | ( | int | row | ) |
Definition at line 84 of file modelitem.cpp.
| ModelItem::iterator LeechCraft::Util::ModelItem::EraseChild | ( | iterator | it | ) |
Definition at line 97 of file modelitem.cpp.
| ModelItem::iterator LeechCraft::Util::ModelItem::EraseChildren | ( | iterator | begin, |
| iterator | end | ||
| ) |
Definition at line 102 of file modelitem.cpp.
| ModelItem_ptr LeechCraft::Util::ModelItem::FindChild | ( | QModelIndex | index | ) | const |
Definition at line 146 of file modelitem.cpp.
| ModelItem_ptr LeechCraft::Util::ModelItem::GetChild | ( | int | row | ) | const |
Definition at line 69 of file modelitem.cpp.
| const ModelItemsList_t & LeechCraft::Util::ModelItem::GetChildren | ( | ) | const |
Definition at line 74 of file modelitem.cpp.
| const QModelIndex & LeechCraft::Util::ModelItem::GetIndex | ( | ) | const |
Definition at line 107 of file modelitem.cpp.
| QAbstractItemModel * LeechCraft::Util::ModelItem::GetModel | ( | ) | const |
Definition at line 118 of file modelitem.cpp.
Referenced by LeechCraft::Util::MergeModel::rowCount().
Here is the caller graph for this function:| ModelItem_ptr LeechCraft::Util::ModelItem::GetParent | ( | ) | const |
Definition at line 123 of file modelitem.cpp.
| int LeechCraft::Util::ModelItem::GetRow | ( | const ModelItem_ptr & | item | ) | const |
Definition at line 128 of file modelitem.cpp.
| int LeechCraft::Util::ModelItem::GetRow | ( | const ModelItem_cptr & | item | ) | const |
Definition at line 133 of file modelitem.cpp.
| int LeechCraft::Util::ModelItem::GetRow | ( | ) | const |
Definition at line 141 of file modelitem.cpp.
Referenced by RefreshIndex().
Here is the caller graph for this function:| int LeechCraft::Util::ModelItem::GetRowCount | ( | ) | const |
Definition at line 79 of file modelitem.cpp.
|
inline |
Definition at line 83 of file modelitem.h.
| void LeechCraft::Util::ModelItem::RefreshIndex | ( | int | modelStartingRow | ) |
Definition at line 112 of file modelitem.cpp.
References GetRow().
Here is the call graph for this function: