#include <qgenericitemmodel_impl.h>
|
| enum | ConstOp {
Index
, Parent
, Sibling
, RowCount
,
ColumnCount
, Flags
, HeaderData
, Data
,
ItemData
} |
| |
| enum | Op {
Destroy
, SetData
, SetItemData
, ClearItemData
,
InsertColumns
, RemoveColumns
, MoveColumns
, InsertRows
,
RemoveRows
, MoveRows
} |
| |
|
| template<typename Impl> |
| | QGenericItemModelImplBase (QGenericItemModel *itemModel, const Impl *) |
| |
| | ~QGenericItemModelImplBase ()=default |
| |
| QModelIndex | createIndex (int row, int column, const void *ptr=nullptr) const |
| |
| void | changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) |
| |
| QHash< int, QByteArray > | roleNames () const |
| |
| void | dataChanged (const QModelIndex &from, const QModelIndex &to, const QList< int > &roles) |
| |
| void | beginInsertColumns (const QModelIndex &parent, int start, int count) |
| |
| void | endInsertColumns () |
| |
| void | beginRemoveColumns (const QModelIndex &parent, int start, int count) |
| |
| void | endRemoveColumns () |
| |
| bool | beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destParent, int destRow) |
| |
| void | endMoveColumns () |
| |
| void | beginInsertRows (const QModelIndex &parent, int start, int count) |
| |
| void | endInsertRows () |
| |
| void | beginRemoveRows (const QModelIndex &parent, int start, int count) |
| |
| void | endRemoveRows () |
| |
| bool | beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destParent, int destRow) |
| |
| void | endMoveRows () |
| |
| QAbstractItemModel & | itemModel () |
| |
| const QAbstractItemModel & | itemModel () const |
| |
|
| template<typename Tuple, typename F, size_t ... Is> |
| static void | call_at (Tuple &&tuple, size_t idx, std::index_sequence< Is... >, F &&function) |
| |
| template<typename T, typename F> |
| static auto | for_element_at (T &&tuple, size_t idx, F &&function) |
| |
| template<typename Tuple, std::size_t ... I> |
| static constexpr std::array< QMetaType, sizeof...(I)> | makeMetaTypes (std::index_sequence< I... >) |
| |
| template<typename T> |
| static constexpr QMetaType | meta_type_at (size_t idx) |
| |
| template<typename Class, typename T, typename F, size_t... I> |
| static auto | apply (std::integer_sequence< size_t, I... >, Class *obj, F &&fn, T &&tuple) |
| |
| template<typename Ret, typename Class, typename ... Args> |
| static void | makeCall (QGenericItemModelImplBase *obj, Ret(Class::*&&fn)(Args...), void *ret, const void *args) |
| |
| template<typename Ret, typename Class, typename ... Args> |
| static void | makeCall (const QGenericItemModelImplBase *obj, Ret(Class::*&&fn)(Args...) const, void *ret, const void *args) |
| |
Definition at line 506 of file qgenericitemmodel_impl.h.
◆ ConstOp
| Enumerator |
|---|
| Index | |
| Parent | |
| Sibling | |
| RowCount | |
| ColumnCount | |
| Flags | |
| HeaderData | |
| Data | |
| ItemData | |
Definition at line 570 of file qgenericitemmodel_impl.h.
◆ Op
| Enumerator |
|---|
| Destroy | |
| SetData | |
| SetItemData | |
| ClearItemData | |
| InsertColumns | |
| RemoveColumns | |
| MoveColumns | |
| InsertRows | |
| RemoveRows | |
| MoveRows | |
Definition at line 582 of file qgenericitemmodel_impl.h.
◆ QGenericItemModelImplBase()
template<typename Impl>
| QGenericItemModelImplBase::QGenericItemModelImplBase |
( |
QGenericItemModel * | itemModel, |
|
|
const Impl * | ) |
|
inlineexplicitprotected |
◆ ~QGenericItemModelImplBase()
| QGenericItemModelImplBase::~QGenericItemModelImplBase |
( |
| ) |
|
|
protecteddefault |
◆ apply()
template<typename
Class, typename T, typename
F, size_t... I>
| static auto QGenericItemModelImplBase::apply |
( |
std::integer_sequence< size_t, I... > | , |
|
|
Class * | obj, |
|
|
F && | fn, |
|
|
T && | tuple ) |
|
inlinestaticprotected |
◆ beginInsertColumns()
| void QGenericItemModelImplBase::beginInsertColumns |
( |
const QModelIndex & | parent, |
|
|
int | start, |
|
|
int | count ) |
|
inlineprotected |
◆ beginInsertRows()
| void QGenericItemModelImplBase::beginInsertRows |
( |
const QModelIndex & | parent, |
|
|
int | start, |
|
|
int | count ) |
|
inlineprotected |
◆ beginMoveColumns()
| bool QGenericItemModelImplBase::beginMoveColumns |
( |
const QModelIndex & | sourceParent, |
|
|
int | sourceFirst, |
|
|
int | sourceLast, |
|
|
const QModelIndex & | destParent, |
|
|
int | destRow ) |
|
inlineprotected |
◆ beginMoveRows()
| bool QGenericItemModelImplBase::beginMoveRows |
( |
const QModelIndex & | sourceParent, |
|
|
int | sourceFirst, |
|
|
int | sourceLast, |
|
|
const QModelIndex & | destParent, |
|
|
int | destRow ) |
|
inlineprotected |
◆ beginRemoveColumns()
| void QGenericItemModelImplBase::beginRemoveColumns |
( |
const QModelIndex & | parent, |
|
|
int | start, |
|
|
int | count ) |
|
inlineprotected |
◆ beginRemoveRows()
| void QGenericItemModelImplBase::beginRemoveRows |
( |
const QModelIndex & | parent, |
|
|
int | start, |
|
|
int | count ) |
|
inlineprotected |
◆ call()
template<typename Ret, typename ... Args>
| Ret QGenericItemModelImplBase::call |
( |
Op | op, |
|
|
const Args &... | args ) |
|
inline |
◆ call_at()
template<typename Tuple, typename
F, size_t ... Is>
| static void QGenericItemModelImplBase::call_at |
( |
Tuple && | tuple, |
|
|
size_t | idx, |
|
|
std::index_sequence< Is... > | , |
|
|
F && | function ) |
|
inlinestaticprotected |
◆ callConst()
template<typename Ret, typename ... Args>
| Ret QGenericItemModelImplBase::callConst |
( |
ConstOp | op, |
|
|
const Args &... | args ) const |
|
inline |
◆ changePersistentIndexList()
◆ createIndex()
| QModelIndex QGenericItemModelImplBase::createIndex |
( |
int | row, |
|
|
int | column, |
|
|
const void * | ptr = nullptr ) const |
|
inlineprotected |
◆ dataChanged()
◆ destroy()
| void QGenericItemModelImplBase::destroy |
( |
| ) |
|
|
inline |
◆ endInsertColumns()
| void QGenericItemModelImplBase::endInsertColumns |
( |
| ) |
|
|
inlineprotected |
◆ endInsertRows()
| void QGenericItemModelImplBase::endInsertRows |
( |
| ) |
|
|
inlineprotected |
◆ endMoveColumns()
| void QGenericItemModelImplBase::endMoveColumns |
( |
| ) |
|
|
inlineprotected |
◆ endMoveRows()
| void QGenericItemModelImplBase::endMoveRows |
( |
| ) |
|
|
inlineprotected |
◆ endRemoveColumns()
| void QGenericItemModelImplBase::endRemoveColumns |
( |
| ) |
|
|
inlineprotected |
◆ endRemoveRows()
| void QGenericItemModelImplBase::endRemoveRows |
( |
| ) |
|
|
inlineprotected |
◆ for_element_at()
template<typename T, typename
F>
| static auto QGenericItemModelImplBase::for_element_at |
( |
T && | tuple, |
|
|
size_t | idx, |
|
|
F && | function ) |
|
inlinestaticprotected |
◆ itemModel() [1/2]
◆ itemModel() [2/2]
◆ makeCall() [1/2]
template<typename Ret, typename
Class, typename ... Args>
◆ makeCall() [2/2]
template<typename Ret, typename
Class, typename ... Args>
◆ makeMetaTypes()
template<typename Tuple, std::size_t ... I>
| static constexpr std::array< QMetaType, sizeof...(I)> QGenericItemModelImplBase::makeMetaTypes |
( |
std::index_sequence< I... > | | ) |
|
|
inlinestaticconstexprprotected |
◆ meta_type_at()
template<typename T>
| static constexpr QMetaType QGenericItemModelImplBase::meta_type_at |
( |
size_t | idx | ) |
|
|
inlinestaticconstexprprotected |
◆ roleNames()
The documentation for this class was generated from the following files: