Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGenericTableItemModelImpl< Range > Class Template Reference

#include <qrangemodel_impl.h>

Inheritance diagram for QGenericTableItemModelImpl< Range >:
Collaboration diagram for QGenericTableItemModelImpl< Range >:

Public Member Functions

 QGenericTableItemModelImpl (Range &&model, QRangeModel *itemModel)
Public Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
 QRangeModelImpl (Range &&model, QRangeModelDetails::table_protocol_t< Range > &&protocol, QRangeModel *itemModel)
void invalidateCaches ()
bool setHeaderData (int, Qt::Orientation, const QVariant &, int)
QModelIndex index (int row, int column, const QModelIndex &parent) const
QModelIndex sibling (int row, int column, const QModelIndex &index) const
Qt::ItemFlags flags (const QModelIndex &index) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
QVariant data (const QModelIndex &index, int role) const
QMap< int, QVariantitemData (const QModelIndex &index) const
void multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const
bool setData (const QModelIndex &index, const QVariant &data, int role)
void updateTarget (LHS &org, RHS &&copy) noexcept
void updateTarget (LHS *org, RHS &&copy) noexcept
bool setItemData (const QModelIndex &index, const QMap< int, QVariant > &data)
bool clearItemData (const QModelIndex &index)
QHash< int, QByteArrayroleNames () const
bool doInsertColumns (int column, int count, const QModelIndex &parent, InsertFn insertFn)
bool insertColumns (int column, int count, const QModelIndex &parent)
bool removeColumns (int column, int count, const QModelIndex &parent)
bool moveColumns (const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destParent, int destColumn)
bool doInsertRows (int row, int count, const QModelIndex &parent, InsertFn &&insertFn)
bool insertRows (int row, int count, const QModelIndex &parent)
bool removeRows (int row, int count, const QModelIndex &parent={})
bool moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destParent, int destRow)
QModelIndex parent (const QModelIndex &child) const
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
void destroy ()
Public Member Functions inherited from Interface
 Interface ()=default
 Interface (const QCborValue &cbor)

Protected Member Functions

QModelIndex indexImpl (int row, int column, const QModelIndex &) const
QModelIndex parent (const QModelIndex &) const
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
constexpr bool moveRowsAcross (const QModelIndex &, int, int, const QModelIndex &, int) noexcept
auto makeEmptyRow (typename Base::row_ptr)
template<typename It, typename Sentinel>
void deleteRemovedRows (It &&begin, Sentinel &&end)
decltype(auto) rowDataImpl (const QModelIndex &index) const
decltype(auto) rowDataImpl (const QModelIndex &index)
const range_typechildRangeImpl (const QModelIndex &) const
range_typechildRangeImpl (const QModelIndex &)
const range_typechildrenOf (const_row_ptr row) const
void resetParentInChildren (range_type *)
Protected Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
QGenericTableItemModelImpl< Range > & that ()
const QGenericTableItemModelImpl< Range > & that () const
 ~QRangeModelImpl ()
bool writeAt (const QModelIndex &index, F &&writer)
void readAt (const QModelIndex &index, F &&reader) const
QMetaProperty roleProperty (int role) const
QVariant readRole (int role, ItemType *gadget) const
QVariant readRole (int role, const ItemType &gadget) const
bool writeRole (int role, ItemType *gadget, const QVariant &data)
bool writeRole (int role, ItemType &&gadget, const QVariant &data)
const_row_reference rowData (const QModelIndex &index) const
row_reference rowData (const QModelIndex &index)
const range_typechildRange (const QModelIndex &index) const
range_typechildRange (const QModelIndex &index)
const protocol_typeprotocol () const
protocol_typeprotocol ()
Protected Member Functions inherited from QtPrivate::QQuasiVirtualSubclass< Subclass, Interface >
template<typename... Args>
 QQuasiVirtualSubclass (Args &&... args)

Static Protected Member Functions

static constexpr Qt::ItemFlags defaultFlags ()
static constexpr bool canInsertRowsImpl ()
static constexpr bool canRemoveRowsImpl ()
static constexpr bool canMoveColumns (const QModelIndex &source, const QModelIndex &destination)
static constexpr bool canMoveRows (const QModelIndex &source, const QModelIndex &destination)
Static Protected Member Functions inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
static constexpr int size (const C &c)
static constexpr bool isMutable ()
static constexpr bool dynamicRows ()
static constexpr bool dynamicColumns ()
static constexpr bool canInsertRows ()
static constexpr bool canRemoveRows ()
static QVariant read (const Value &value)
static QVariant read (Value *value)
static bool write (Target &target, const QVariant &value)
static bool write (Target *target, const QVariant &value)
static QVariant readProperty (const QMetaProperty &prop, ItemType *gadget)
static QVariant readProperty (int property, ItemType *gadget)
static QVariant readProperty (int property, const ItemType &gadget)
static bool writeProperty (const QMetaProperty &prop, ItemType *gadget, const QVariant &data)
static bool writeProperty (int property, ItemType *gadget, const QVariant &data)
static bool writeProperty (int property, ItemType &&gadget, const QVariant &data)
static bool resetProperty (int property, ItemType *object)
static bool resetProperty (int property, ItemType &&object)

Friends

class QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >

Additional Inherited Members

Public Types inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
using range_type
using range_features
using row_reference
using row_type
using wrapped_row_type
using row_features
using row_traits
using protocol_type
using protocol_traits
using ModelData
using ProtocolStorage
using const_row_reference
using Override
using Destroy
using Index
using Parent
using Sibling
using RowCount
using ColumnCount
using Flags
using HeaderData
using Data
using ItemData
using RoleNames
using InvalidateCaches
using SetHeaderData
using SetData
using SetItemData
using ClearItemData
using InsertColumns
using RemoveColumns
using MoveColumns
using InsertRows
using RemoveRows
using MoveRows
using MultiData
Public Types inherited from Interface
using Container = QVarLengthArray<Interface, 1>
Public Attributes inherited from Interface
QAnyStringView className
Protected Types inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
using Self
using Ancestor
using row_ptr
using const_row_ptr
Protected Attributes inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
ModelData m_data
Static Protected Attributes inherited from QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
static constexpr int static_row_count
static constexpr bool rows_are_raw_pointers
static constexpr bool rows_are_owning_or_raw_pointers
static constexpr int static_column_count
static constexpr bool one_dimensional_range
static constexpr bool has_metaobject

Detailed Description

template<typename Range>
class QGenericTableItemModelImpl< Range >

Definition at line 2659 of file qrangemodel_impl.h.

Constructor & Destructor Documentation

◆ QGenericTableItemModelImpl()

template<typename Range>
QGenericTableItemModelImpl< Range >::QGenericTableItemModelImpl ( Range && model,
QRangeModel * itemModel )
inlineexplicit

Definition at line 2675 of file qrangemodel_impl.h.

References QGenericTableItemModelImpl().

Referenced by QGenericTableItemModelImpl().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ canInsertRowsImpl()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canInsertRowsImpl ( )
inlinestaticconstexprprotected

Definition at line 2729 of file qrangemodel_impl.h.

◆ canMoveColumns()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canMoveColumns ( const QModelIndex & source,
const QModelIndex & destination )
inlinestaticconstexprprotected

Definition at line 2739 of file qrangemodel_impl.h.

◆ canMoveRows()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canMoveRows ( const QModelIndex & source,
const QModelIndex & destination )
inlinestaticconstexprprotected

Definition at line 2744 of file qrangemodel_impl.h.

◆ canRemoveRowsImpl()

template<typename Range>
constexpr bool QGenericTableItemModelImpl< Range >::canRemoveRowsImpl ( )
inlinestaticconstexprprotected

Definition at line 2734 of file qrangemodel_impl.h.

◆ childRangeImpl() [1/2]

template<typename Range>
range_type * QGenericTableItemModelImpl< Range >::childRangeImpl ( const QModelIndex & )
inlineprotected

Definition at line 2795 of file qrangemodel_impl.h.

◆ childRangeImpl() [2/2]

template<typename Range>
const range_type * QGenericTableItemModelImpl< Range >::childRangeImpl ( const QModelIndex & ) const
inlineprotected

Definition at line 2790 of file qrangemodel_impl.h.

◆ childrenOf()

template<typename Range>
const range_type & QGenericTableItemModelImpl< Range >::childrenOf ( const_row_ptr row) const
inlineprotected

Definition at line 2800 of file qrangemodel_impl.h.

◆ columnCount()

template<typename Range>
int QGenericTableItemModelImpl< Range >::columnCount ( const QModelIndex & parent) const
inlineprotected

Definition at line 2707 of file qrangemodel_impl.h.

◆ defaultFlags()

template<typename Range>
constexpr Qt::ItemFlags QGenericTableItemModelImpl< Range >::defaultFlags ( )
inlinestaticconstexprprotected

Definition at line 2724 of file qrangemodel_impl.h.

◆ deleteRemovedRows()

template<typename Range>
template<typename It, typename Sentinel>
void QGenericTableItemModelImpl< Range >::deleteRemovedRows ( It && begin,
Sentinel && end )
inlineprotected

Definition at line 2770 of file qrangemodel_impl.h.

◆ indexImpl()

template<typename Range>
QModelIndex QGenericTableItemModelImpl< Range >::indexImpl ( int row,
int column,
const QModelIndex &  ) const
inlineprotected

Definition at line 2680 of file qrangemodel_impl.h.

◆ makeEmptyRow()

template<typename Range>
auto QGenericTableItemModelImpl< Range >::makeEmptyRow ( typename Base::row_ptr )
inlineprotected

Definition at line 2756 of file qrangemodel_impl.h.

◆ moveRowsAcross()

template<typename Range>
bool QGenericTableItemModelImpl< Range >::moveRowsAcross ( const QModelIndex & ,
int ,
int ,
const QModelIndex & ,
int  )
inlineconstexprprotectednoexcept

Definition at line 2749 of file qrangemodel_impl.h.

◆ parent()

template<typename Range>
QModelIndex QGenericTableItemModelImpl< Range >::parent ( const QModelIndex & ) const
inlineprotected

Definition at line 2695 of file qrangemodel_impl.h.

◆ resetParentInChildren()

template<typename Range>
void QGenericTableItemModelImpl< Range >::resetParentInChildren ( range_type * )
inlineprotected

Definition at line 2806 of file qrangemodel_impl.h.

◆ rowCount()

template<typename Range>
int QGenericTableItemModelImpl< Range >::rowCount ( const QModelIndex & parent) const
inlineprotected

Definition at line 2700 of file qrangemodel_impl.h.

◆ rowDataImpl() [1/2]

template<typename Range>
decltype(auto) QGenericTableItemModelImpl< Range >::rowDataImpl ( const QModelIndex & index)
inlineprotected

Definition at line 2784 of file qrangemodel_impl.h.

◆ rowDataImpl() [2/2]

template<typename Range>
decltype(auto) QGenericTableItemModelImpl< Range >::rowDataImpl ( const QModelIndex & index) const
inlineprotected

Definition at line 2778 of file qrangemodel_impl.h.

◆ QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >

template<typename Range>
friend class QRangeModelImpl< QGenericTableItemModelImpl< Range >, Range >
friend

Definition at line 2650 of file qrangemodel_impl.h.


The documentation for this class was generated from the following file: