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
QRangeModelImplBase Class Reference

#include <qrangemodel_impl.h>

Inheritance diagram for QRangeModelImplBase:
Collaboration diagram for QRangeModelImplBase:

Public Types

using InvalidateCaches = Method<&Self::invalidateCaches>
using SetHeaderData = Method<&Self::setHeaderData>
using SetData = Method<&Self::setData>
using SetItemData = Method<&Self::setItemData>
using ClearItemData = Method<&Self::clearItemData>
using InsertColumns = Method<&Self::insertColumns>
using RemoveColumns = Method<&Self::removeColumns>
using MoveColumns = Method<&Self::moveColumns>
using InsertRows = Method<&Self::insertRows>
using RemoveRows = Method<&Self::removeRows>
using MoveRows = Method<&Self::moveRows>
using Index = Method<&Self::index>
using Sibling = Method<&Self::sibling>
using RowCount = Method<&Self::rowCount>
using ColumnCount = Method<&Self::columnCount>
using Flags = Method<&Self::flags>
using HeaderData = Method<&Self::headerData>
using Data = Method<&Self::data>
using ItemData = Method<&Self::itemData>
using RoleNames = Method<&Self::roleNames>
using Parent = Method<&Self::parent>
using MultiData = Method<&Self::multiData>
template<typename C>
using MethodTemplates
Public Types inherited from QtPrivate::QQuasiVirtualInterface< QRangeModelImplBase >
using Destroy

Public Member Functions

void invalidateCaches ()
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &data, int role)
bool setData (const QModelIndex &index, const QVariant &data, int role)
bool setItemData (const QModelIndex &index, const QMap< int, QVariant > &data)
bool clearItemData (const QModelIndex &index)
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 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 index (int row, int column, const QModelIndex &parent) const
QModelIndex sibling (int row, int column, const QModelIndex &index) const
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) 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
QHash< int, QByteArrayroleNames () const
QModelIndex parent (const QModelIndex &child) const
void multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const
Public Member Functions inherited from QtPrivate::QQuasiVirtualInterface< QRangeModelImplBase >
auto call (Args &&... args) const
void destroy ()

Protected Member Functions

 QRangeModelImplBase (QRangeModel *itemModel)
QModelIndex createIndex (int row, int column, const void *ptr=nullptr) const
void changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to)
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 ()
QAbstractItemModelitemModel ()
const QAbstractItemModelitemModel () const
Protected Member Functions inherited from QtPrivate::QQuasiVirtualInterface< QRangeModelImplBase >
void initCallFN (CallFN func)
 QQuasiVirtualInterface ()=default
 ~QQuasiVirtualInterface ()=default

Static Protected Member Functions

template<typename StaticContainer, typename F>
static auto for_element_at (StaticContainer &&container, std::size_t idx, F &&function)
template<typename T>
static constexpr QMetaType meta_type_at (size_t idx)
static Q_CORE_EXPORT QHash< int, QByteArrayroleNamesForMetaObject (const QAbstractItemModel &model, const QMetaObject &metaObject)
static Q_CORE_EXPORT QHash< int, QByteArrayroleNamesForSimpleType ()

Friends

class QRangeModelPrivate

Additional Inherited Members

Protected Types inherited from QtPrivate::QQuasiVirtualInterface< QRangeModelImplBase >
using base_interface
using CallFN

Detailed Description

Definition at line 915 of file qrangemodel_impl.h.

Member Typedef Documentation

◆ ClearItemData

◆ ColumnCount

◆ Data

Definition at line 1014 of file qrangemodel_impl.h.

◆ Flags

Definition at line 1012 of file qrangemodel_impl.h.

◆ HeaderData

◆ Index

Definition at line 1008 of file qrangemodel_impl.h.

◆ InsertColumns

◆ InsertRows

◆ InvalidateCaches

◆ ItemData

◆ MethodTemplates

template<typename C>
using QRangeModelImplBase::MethodTemplates
Initial value:
std::tuple<
typename C::Destroy,
typename C::InvalidateCaches,
typename C::SetHeaderData,
typename C::SetData,
typename C::SetItemData,
typename C::ClearItemData,
typename C::InsertColumns,
typename C::RemoveColumns,
typename C::MoveColumns,
typename C::InsertRows,
typename C::RemoveRows,
typename C::MoveRows,
typename C::Index,
typename C::Parent,
typename C::Sibling,
typename C::RowCount,
typename C::ColumnCount,
typename C::Flags,
typename C::HeaderData,
typename C::Data,
typename C::ItemData,
typename C::RoleNames,
typename C::MultiData
>

Definition at line 1023 of file qrangemodel_impl.h.

◆ MoveColumns

◆ MoveRows

◆ MultiData

◆ Parent

◆ RemoveColumns

◆ RemoveRows

◆ RoleNames

◆ RowCount

◆ SetData

◆ SetHeaderData

◆ SetItemData

◆ Sibling

Constructor & Destructor Documentation

◆ QRangeModelImplBase()

QRangeModelImplBase::QRangeModelImplBase ( QRangeModel * itemModel)
inlineexplicitprotected

Definition at line 1054 of file qrangemodel_impl.h.

Member Function Documentation

◆ beginInsertColumns()

void QRangeModelImplBase::beginInsertColumns ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 136 of file qrangemodel.h.

◆ beginInsertRows()

void QRangeModelImplBase::beginInsertRows ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 164 of file qrangemodel.h.

◆ beginMoveColumns()

bool QRangeModelImplBase::beginMoveColumns ( const QModelIndex & sourceParent,
int sourceFirst,
int sourceLast,
const QModelIndex & destParent,
int destRow )
inlineprotected

Definition at line 152 of file qrangemodel.h.

◆ beginMoveRows()

bool QRangeModelImplBase::beginMoveRows ( const QModelIndex & sourceParent,
int sourceFirst,
int sourceLast,
const QModelIndex & destParent,
int destRow )
inlineprotected

Definition at line 180 of file qrangemodel.h.

◆ beginRemoveColumns()

void QRangeModelImplBase::beginRemoveColumns ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 144 of file qrangemodel.h.

◆ beginRemoveRows()

void QRangeModelImplBase::beginRemoveRows ( const QModelIndex & parent,
int start,
int count )
inlineprotected

Definition at line 172 of file qrangemodel.h.

◆ changePersistentIndexList()

void QRangeModelImplBase::changePersistentIndexList ( const QModelIndexList & from,
const QModelIndexList & to )
inlineprotected

Definition at line 126 of file qrangemodel.h.

◆ clearItemData()

bool QRangeModelImplBase::clearItemData ( const QModelIndex & index)

◆ columnCount()

int QRangeModelImplBase::columnCount ( const QModelIndex & parent) const

◆ createIndex()

QModelIndex QRangeModelImplBase::createIndex ( int row,
int column,
const void * ptr = nullptr ) const
inlineprotected

Definition at line 122 of file qrangemodel.h.

◆ data()

QVariant QRangeModelImplBase::data ( const QModelIndex & index,
int role ) const

◆ dataChanged()

void QRangeModelImplBase::dataChanged ( const QModelIndex & from,
const QModelIndex & to,
const QList< int > & roles )
inlineprotected

Definition at line 131 of file qrangemodel.h.

◆ endInsertColumns()

void QRangeModelImplBase::endInsertColumns ( )
inlineprotected

Definition at line 140 of file qrangemodel.h.

◆ endInsertRows()

void QRangeModelImplBase::endInsertRows ( )
inlineprotected

Definition at line 168 of file qrangemodel.h.

◆ endMoveColumns()

void QRangeModelImplBase::endMoveColumns ( )
inlineprotected

Definition at line 159 of file qrangemodel.h.

◆ endMoveRows()

void QRangeModelImplBase::endMoveRows ( )
inlineprotected

Definition at line 186 of file qrangemodel.h.

◆ endRemoveColumns()

void QRangeModelImplBase::endRemoveColumns ( )
inlineprotected

Definition at line 148 of file qrangemodel.h.

◆ endRemoveRows()

void QRangeModelImplBase::endRemoveRows ( )
inlineprotected

Definition at line 176 of file qrangemodel.h.

◆ flags()

Qt::ItemFlags QRangeModelImplBase::flags ( const QModelIndex & index) const

◆ for_element_at()

template<typename StaticContainer, typename F>
auto QRangeModelImplBase::for_element_at ( StaticContainer && container,
std::size_t idx,
F && function )
inlinestaticprotected

Definition at line 924 of file qrangemodel_impl.h.

◆ headerData()

QVariant QRangeModelImplBase::headerData ( int section,
Qt::Orientation orientation,
int role ) const

◆ index()

QModelIndex QRangeModelImplBase::index ( int row,
int column,
const QModelIndex & parent ) const

◆ insertColumns()

bool QRangeModelImplBase::insertColumns ( int column,
int count,
const QModelIndex & parent )

◆ insertRows()

bool QRangeModelImplBase::insertRows ( int row,
int count,
const QModelIndex & parent )

◆ invalidateCaches()

void QRangeModelImplBase::invalidateCaches ( )

◆ itemData()

QMap< int, QVariant > QRangeModelImplBase::itemData ( const QModelIndex & index) const

◆ itemModel() [1/2]

QAbstractItemModel & QRangeModelImplBase::itemModel ( )
inlineprotected

Definition at line 190 of file qrangemodel.h.

◆ itemModel() [2/2]

const QAbstractItemModel & QRangeModelImplBase::itemModel ( ) const
inlineprotected

Definition at line 194 of file qrangemodel.h.

◆ meta_type_at()

template<typename T>
constexpr QMetaType QRangeModelImplBase::meta_type_at ( size_t idx)
inlinestaticconstexprprotected

Definition at line 948 of file qrangemodel_impl.h.

◆ moveColumns()

bool QRangeModelImplBase::moveColumns ( const QModelIndex & sourceParent,
int sourceColumn,
int count,
const QModelIndex & destParent,
int destColumn )

◆ moveRows()

bool QRangeModelImplBase::moveRows ( const QModelIndex & sourceParent,
int sourceRow,
int count,
const QModelIndex & destParent,
int destRow )

◆ multiData()

void QRangeModelImplBase::multiData ( const QModelIndex & index,
QModelRoleDataSpan roleDataSpan ) const

◆ parent()

QModelIndex QRangeModelImplBase::parent ( const QModelIndex & child) const

◆ removeColumns()

bool QRangeModelImplBase::removeColumns ( int column,
int count,
const QModelIndex & parent )

◆ removeRows()

bool QRangeModelImplBase::removeRows ( int row,
int count,
const QModelIndex & parent )

◆ roleNames()

QHash< int, QByteArray > QRangeModelImplBase::roleNames ( ) const

◆ roleNamesForMetaObject()

QHash< int, QByteArray > QRangeModelImplBase::roleNamesForMetaObject ( const QAbstractItemModel & model,
const QMetaObject & metaObject )
staticprotected

Definition at line 1082 of file qrangemodel.cpp.

◆ roleNamesForSimpleType()

QHash< int, QByteArray > QRangeModelImplBase::roleNamesForSimpleType ( )
staticprotected

Definition at line 1101 of file qrangemodel.cpp.

◆ rowCount()

int QRangeModelImplBase::rowCount ( const QModelIndex & parent) const

◆ setData()

bool QRangeModelImplBase::setData ( const QModelIndex & index,
const QVariant & data,
int role )

◆ setHeaderData()

bool QRangeModelImplBase::setHeaderData ( int section,
Qt::Orientation orientation,
const QVariant & data,
int role )

◆ setItemData()

bool QRangeModelImplBase::setItemData ( const QModelIndex & index,
const QMap< int, QVariant > & data )

◆ sibling()

QModelIndex QRangeModelImplBase::sibling ( int row,
int column,
const QModelIndex & index ) const

◆ QRangeModelPrivate

friend class QRangeModelPrivate
friend

Definition at line 1050 of file qrangemodel_impl.h.


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