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
QGenericTreeItemModelImpl< Range, Protocol > Class Template Reference

#include <qrangemodel_impl.h>

Inheritance diagram for QGenericTreeItemModelImpl< Range, Protocol >:
Collaboration diagram for QGenericTreeItemModelImpl< Range, Protocol >:

Public Member Functions

 QGenericTreeItemModelImpl (Range &&model, Protocol &&p, QRangeModel *itemModel)
Public Member Functions inherited from QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
 QRangeModelImpl (Range &&model, Protocol &&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 &parent) const
QModelIndex parent (const QModelIndex &child) const
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &) const
bool moveRowsAcross (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destParent, int destRow)
auto makeEmptyRow (row_ptr parentRow)
template<typename It, typename Sentinel>
void deleteRemovedRows (It &&begin, Sentinel &&end)
void resetParentInChildren (range_type *children)
decltype(auto) rowDataImpl (const QModelIndex &index) const
decltype(auto) rowDataImpl (const QModelIndex &index)
const range_typechildRangeImpl (const QModelIndex &index) const
range_typechildRangeImpl (const QModelIndex &index)
const range_typechildrenOf (const_row_ptr row) const
Protected Member Functions inherited from QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
QGenericTreeItemModelImpl< Range, Protocol > & that ()
const QGenericTreeItemModelImpl< Range, Protocol > & 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 &, const QModelIndex &)
static constexpr bool canMoveRows (const QModelIndex &, const QModelIndex &)
Static Protected Member Functions inherited from QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
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< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >

Additional Inherited Members

Public Types inherited from QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
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< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
using Self
using Ancestor
using row_ptr
using const_row_ptr
Protected Attributes inherited from QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
ModelData m_data
Static Protected Attributes inherited from QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
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, typename Protocol>
class QGenericTreeItemModelImpl< Range, Protocol >

Definition at line 2348 of file qrangemodel_impl.h.

Constructor & Destructor Documentation

◆ QGenericTreeItemModelImpl()

template<typename Range, typename Protocol>
QGenericTreeItemModelImpl< Range, Protocol >::QGenericTreeItemModelImpl ( Range && model,
Protocol && p,
QRangeModel * itemModel )
inline

Definition at line 2369 of file qrangemodel_impl.h.

Member Function Documentation

◆ canInsertRowsImpl()

template<typename Range, typename Protocol>
constexpr bool QGenericTreeItemModelImpl< Range, Protocol >::canInsertRowsImpl ( )
inlinestaticconstexprprotected

Definition at line 2432 of file qrangemodel_impl.h.

◆ canMoveColumns()

template<typename Range, typename Protocol>
constexpr bool QGenericTreeItemModelImpl< Range, Protocol >::canMoveColumns ( const QModelIndex & ,
const QModelIndex &  )
inlinestaticconstexprprotected

Definition at line 2450 of file qrangemodel_impl.h.

◆ canMoveRows()

template<typename Range, typename Protocol>
constexpr bool QGenericTreeItemModelImpl< Range, Protocol >::canMoveRows ( const QModelIndex & ,
const QModelIndex &  )
inlinestaticconstexprprotected

Definition at line 2455 of file qrangemodel_impl.h.

◆ canRemoveRowsImpl()

template<typename Range, typename Protocol>
constexpr bool QGenericTreeItemModelImpl< Range, Protocol >::canRemoveRowsImpl ( )
inlinestaticconstexprprotected

Definition at line 2441 of file qrangemodel_impl.h.

◆ childRangeImpl() [1/2]

template<typename Range, typename Protocol>
range_type * QGenericTreeItemModelImpl< Range, Protocol >::childRangeImpl ( const QModelIndex & index)
inlineprotected

Definition at line 2625 of file qrangemodel_impl.h.

◆ childRangeImpl() [2/2]

template<typename Range, typename Protocol>
const range_type * QGenericTreeItemModelImpl< Range, Protocol >::childRangeImpl ( const QModelIndex & index) const
inlineprotected

Definition at line 2615 of file qrangemodel_impl.h.

◆ childrenOf()

template<typename Range, typename Protocol>
const range_type & QGenericTreeItemModelImpl< Range, Protocol >::childrenOf ( const_row_ptr row) const
inlineprotected

Definition at line 2643 of file qrangemodel_impl.h.

◆ columnCount()

template<typename Range, typename Protocol>
int QGenericTreeItemModelImpl< Range, Protocol >::columnCount ( const QModelIndex & ) const
inlineprotected

Definition at line 2418 of file qrangemodel_impl.h.

◆ defaultFlags()

template<typename Range, typename Protocol>
constexpr Qt::ItemFlags QGenericTreeItemModelImpl< Range, Protocol >::defaultFlags ( )
inlinestaticconstexprprotected

Definition at line 2427 of file qrangemodel_impl.h.

◆ deleteRemovedRows()

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

Definition at line 2549 of file qrangemodel_impl.h.

◆ indexImpl()

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

Definition at line 2374 of file qrangemodel_impl.h.

◆ makeEmptyRow()

template<typename Range, typename Protocol>
auto QGenericTreeItemModelImpl< Range, Protocol >::makeEmptyRow ( row_ptr parentRow)
inlineprotected

Definition at line 2537 of file qrangemodel_impl.h.

◆ moveRowsAcross()

template<typename Range, typename Protocol>
bool QGenericTreeItemModelImpl< Range, Protocol >::moveRowsAcross ( const QModelIndex & sourceParent,
int sourceRow,
int count,
const QModelIndex & destParent,
int destRow )
inlineprotected

Definition at line 2460 of file qrangemodel_impl.h.

References resetParentInChildren().

Here is the call graph for this function:

◆ parent()

template<typename Range, typename Protocol>
QModelIndex QGenericTreeItemModelImpl< Range, Protocol >::parent ( const QModelIndex & child) const
inlineprotected

Definition at line 2388 of file qrangemodel_impl.h.

◆ resetParentInChildren()

template<typename Range, typename Protocol>
void QGenericTreeItemModelImpl< Range, Protocol >::resetParentInChildren ( range_type * children)
inlineprotected

Definition at line 2567 of file qrangemodel_impl.h.

References resetParentInChildren().

Referenced by moveRowsAcross(), and resetParentInChildren().

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

◆ rowCount()

template<typename Range, typename Protocol>
int QGenericTreeItemModelImpl< Range, Protocol >::rowCount ( const QModelIndex & parent) const
inlineprotected

Definition at line 2413 of file qrangemodel_impl.h.

◆ rowDataImpl() [1/2]

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

Definition at line 2607 of file qrangemodel_impl.h.

◆ rowDataImpl() [2/2]

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

Definition at line 2599 of file qrangemodel_impl.h.

◆ QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >

template<typename Range, typename Protocol>
friend class QRangeModelImpl< QGenericTreeItemModelImpl< Range, Protocol >, Range, Protocol >
friend

Definition at line 1198 of file qrangemodel_impl.h.


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