33 QAbstractItemModel *
const Model_ =
nullptr;
74 const QModelIndex&
GetIndex ()
const;
80 QAbstractItemModel*
GetModel ()
const;
Provides a proxying API on top of an QAbstractItemModel.
ModelItem * EnsureChild(int row)
Ensures there is a child item at the given row.
QAbstractItemModel * GetModel() const
Returns the wrapped model.
ModelItem()=default
Constructs a default (invalid) ModelItem having no model set.
void RefreshIndex(int modelStartingRow)
Updates the wrapped index so that it points at the given row.
const QModelIndex & GetIndex() const
Returns the index this ModelItem instance wraps.
ModelItemsList_t::iterator iterator
ModelItem_ptr FindChild(QModelIndex index) const
Finds a child item for the given index.
ModelItemsList_t::const_iterator const_iterator
std::shared_ptr< ModelItem > ModelItem_ptr
QVector< ModelItem_ptr > ModelItemsList_t
std::shared_ptr< const ModelItem > ModelItem_cptr
std::weak_ptr< ModelItem > ModelItem_wtr