|
WSF
|
Implements a model of a tree where each item in the tree is derived from AbstractModelItem. More...
#include <AbstractModel.hpp>
Inherits QAbstractItemModel.

Public Member Functions | |
| AbstractModel () | |
| void | SetRoot (AbstractModelItem *aItemPtr) |
| AbstractModelItem * | FindItem (const QModelIndex &idx) const |
| int | rowCount (const QModelIndex &parent) const override |
| int | columnCount (const QModelIndex &parent) const override |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
| QModelIndex | parent (const QModelIndex &child) const override |
| QModelIndex | GetRowIndex (AbstractModelItem &aRow) const |
| void | FakeInsert (AbstractModelItem &aParent) |
Protected Member Functions | |
| void | BeginInsert (AbstractModelItem &aParent, int aIndex) |
| void | EndInsert () |
| void | BeginRemove (AbstractModelItem &aParent, int aIndex, int aCount=1) |
| void | EndRemove () |
| void | BeginMove (AbstractModelItem &aSource, int aSourceIndex, int aCount, AbstractModelItem &aDestination, int aDestinationIndex) |
| void | EndMove () |
Protected Attributes | |
| AbstractModelItem * | mRootPtr |
| int | mChangeMode |
Friends | |
| class | AbstractModelItem |
Implements a model of a tree where each item in the tree is derived from AbstractModelItem.
|
inline |
References mChangeMode, and mRootPtr.
|
protected |
References AbstractModelItem, GetRowIndex(), and mChangeMode.
Referenced by FakeInsert().
|
protected |
References AbstractModelItem, GetRowIndex(), and mChangeMode.
|
protected |
References AbstractModelItem, GetRowIndex(), and mChangeMode.
|
override |
References AbstractModelItem, FindItem(), and parent().
|
protected |
References mChangeMode.
Referenced by FakeInsert().
|
protected |
References mChangeMode.
|
protected |
References mChangeMode.
| void wizard::AbstractModel::FakeInsert | ( | AbstractModelItem & | aParent | ) |
References AbstractModelItem, BeginInsert(), and EndInsert().
| wizard::AbstractModelItem * wizard::AbstractModel::FindItem | ( | const QModelIndex & | idx | ) | const |
References AbstractModelItem, wizard::AbstractModelItem::GetAbstractItem(), and mRootPtr.
Referenced by columnCount(), index(), and rowCount().
| QModelIndex wizard::AbstractModel::GetRowIndex | ( | AbstractModelItem & | aRow | ) | const |
References AbstractModelItem, wizard::AbstractModelItem::GetAbstractItemParent(), and mRootPtr.
Referenced by BeginInsert(), BeginMove(), and BeginRemove().
|
override |
References AbstractModelItem, FindItem(), and parent().
|
override |
References AbstractModelItem, and wizard::AbstractModelItem::GetAbstractItemParent().
Referenced by columnCount(), index(), and rowCount().
|
override |
References AbstractModelItem, FindItem(), and parent().
| void wizard::AbstractModel::SetRoot | ( | AbstractModelItem * | aItemPtr | ) |
References AbstractModelItem, and mRootPtr.
|
friend |
References AbstractModelItem.
Referenced by AbstractModelItem, BeginInsert(), BeginMove(), BeginRemove(), columnCount(), FakeInsert(), FindItem(), GetRowIndex(), index(), parent(), rowCount(), and SetRoot().
|
protected |
Referenced by AbstractModel(), BeginInsert(), BeginMove(), BeginRemove(), EndInsert(), EndMove(), and EndRemove().
|
protected |
Referenced by AbstractModel(), FindItem(), GetRowIndex(), and SetRoot().