![]() |
Qt 6.x
The Qt SDK
|
#include <qqmladaptormodel_p.h>
Classes | |
class | Accessors |
Public Attributes | |
Accessors * | accessors |
QPersistentModelIndex | rootIndex |
QQmlListAccessor | list |
QV4::PersistentValue | modelStrongReference |
QTypeRevision | modelItemRevision = QTypeRevision::zero() |
Additional Inherited Members | |
![]() | |
using | ObjectDestroyedFn = void(*)(QQmlGuardImpl *) |
![]() | |
~QQmlGuardImpl () | |
QQmlGuardImpl () | |
QQmlGuardImpl (QObject *) | |
QQmlGuardImpl (const QQmlGuardImpl &) | |
void | addGuard () |
void | remGuard () |
void | setObject (QObject *g) |
bool | isNull () const noexcept |
![]() | |
QObject * | o = nullptr |
QQmlGuardImpl * | next = nullptr |
QQmlGuardImpl ** | prev = nullptr |
ObjectDestroyedFn | objectDestroyed = nullptr |
Definition at line 37 of file qqmladaptormodel_p.h.
QQmlAdaptorModel::QQmlAdaptorModel | ( | ) |
Definition at line 16 of file qqmladaptormodel.cpp.
QQmlAdaptorModel::~QQmlAdaptorModel | ( | ) |
Definition at line 22 of file qqmladaptormodel.cpp.
References accessors, and QQmlAdaptorModel::Accessors::cleanup().
|
inline |
Definition at line 105 of file qqmladaptormodel_p.h.
Referenced by QQmlTableInstanceModel::abstractItemModel(), QQmlDelegateModelPrivate::connectToAbstractItemModel(), and QQmlDelegateModelPrivate::disconnectFromAbstractItemModel().
|
inline |
Definition at line 106 of file qqmladaptormodel_p.h.
References QQmlGuard< T >::object().
Referenced by QQmlTableInstanceModel::abstractItemModel(), VDMAbstractItemModelDataType::canFetchMore(), VDMAbstractItemModelDataType::columnCount(), QQmlDelegateModelPrivate::connectToAbstractItemModel(), QQmlDelegateModelPrivate::disconnectFromAbstractItemModel(), VDMAbstractItemModelDataType::fetchMore(), VDMAbstractItemModelDataType::get_hasModelChildren(), QQmlDMAbstractItemModelData::hasModelChildren(), VDMAbstractItemModelDataType::initializeMetaType(), VDMAbstractItemModelDataType::modelIndex(), VDMAbstractItemModelDataType::parentModelIndex(), VDMAbstractItemModelDataType::rowCount(), and VDMAbstractItemModelDataType::value().
|
inline |
Definition at line 107 of file qqmladaptormodel_p.h.
References QQmlGuard< T >::object().
|
inline |
Definition at line 134 of file qqmladaptormodel_p.h.
References QQmlAdaptorModel::Accessors::canFetchMore().
Referenced by QQmlDelegateModelPrivate::requestMoreIfNecessary().
int QQmlAdaptorModel::columnAt | ( | int | index | ) | const |
Definition at line 97 of file qqmladaptormodel.cpp.
References count(), and rowCount().
Referenced by VDMAbstractItemModelDataType::modelIndex(), QQmlDMAbstractItemModelData::resolveIndex(), QQmlTableInstanceModel::reuseItem(), and VDMAbstractItemModelDataType::value().
int QQmlAdaptorModel::columnCount | ( | ) | const |
Definition at line 86 of file qqmladaptormodel.cpp.
References accessors, QQmlAdaptorModel::Accessors::columnCount(), and qMax().
Referenced by count().
int QQmlAdaptorModel::count | ( | ) | const |
Definition at line 76 of file qqmladaptormodel.cpp.
References columnCount(), and rowCount().
Referenced by columnAt(), QQmlTableInstanceModel::object(), and rowAt().
|
inline |
Definition at line 111 of file qqmladaptormodel_p.h.
References QQmlAdaptorModel::Accessors::createItem().
Referenced by QQmlDelegateModelPrivate::insert(), and QQmlDelegateModelPrivate::object().
|
inline |
Definition at line 135 of file qqmladaptormodel_p.h.
References QQmlAdaptorModel::Accessors::fetchMore().
|
inline |
Definition at line 116 of file qqmladaptormodel_p.h.
References QQmlListAccessor::Instance, list, QQmlListAccessor::ListProperty, and QQmlListAccessor::ObjectList.
Referenced by QQmlDelegateModelPrivate::object().
int QQmlAdaptorModel::indexAt | ( | int | row, |
int | column | ||
) | const |
Definition at line 103 of file qqmladaptormodel.cpp.
References rowCount().
Referenced by QQmlAbstractDelegateComponent::value().
void QQmlAdaptorModel::invalidateModel | ( | ) |
Definition at line 63 of file qqmladaptormodel.cpp.
References accessors, and QQmlAdaptorModel::Accessors::cleanup().
bool QQmlAdaptorModel::isValid | ( | ) | const |
Definition at line 71 of file qqmladaptormodel.cpp.
References accessors.
|
inline |
Definition at line 91 of file qqmladaptormodel_p.h.
References list.
Referenced by QQmlTableInstanceModel::model().
|
inline |
Definition at line 132 of file qqmladaptormodel_p.h.
References QQmlAdaptorModel::Accessors::modelIndex().
|
inline |
Definition at line 122 of file qqmladaptormodel_p.h.
References items, and QQmlAdaptorModel::Accessors::notify().
Referenced by QQmlTableInstanceModel::reuseItem(), and QQmlDelegateModelPrivate::reuseItem().
|
inline |
Definition at line 133 of file qqmladaptormodel_p.h.
References QQmlAdaptorModel::Accessors::parentModelIndex().
|
inline |
Definition at line 128 of file qqmladaptormodel_p.h.
References oldRoles, and QQmlAdaptorModel::Accessors::replaceWatchedRoles().
int QQmlAdaptorModel::rowAt | ( | int | index | ) | const |
Definition at line 91 of file qqmladaptormodel.cpp.
References count(), and rowCount().
Referenced by VDMAbstractItemModelDataType::modelIndex(), QQmlDMAbstractItemModelData::resolveIndex(), QQmlTableInstanceModel::reuseItem(), and VDMAbstractItemModelDataType::value().
int QQmlAdaptorModel::rowCount | ( | ) | const |
Definition at line 81 of file qqmladaptormodel.cpp.
References accessors, qMax(), and QQmlAdaptorModel::Accessors::rowCount().
Referenced by QQmlDelegateModelPrivate::adaptorModelCount(), columnAt(), count(), indexAt(), and rowAt().
Definition at line 27 of file qqmladaptormodel.cpp.
References accessors, QQmlAdaptorModel::Accessors::cleanup(), QV4::PersistentValue::clear(), QVariant::constData(), QQmlData::get(), QQmlListAccessor::Instance, QQmlListAccessor::Invalid, list, QQmlListAccessor::list(), QQmlListAccessor::ListProperty, modelStrongReference, QQmlListAccessor::ObjectList, QQmlListAccessor::setList(), QQmlGuard< QObject >::setObject(), QQmlListAccessor::type(), and variant.
Referenced by QQmlTableInstanceModel::setModel().
void QQmlAdaptorModel::useImportVersion | ( | QTypeRevision | revision | ) |
Definition at line 108 of file qqmladaptormodel.cpp.
References modelItemRevision.
Referenced by QQmlTableInstanceModel::useImportVersion().
Definition at line 109 of file qqmladaptormodel_p.h.
References QQmlAdaptorModel::Accessors::value().
Referenced by QQmlAbstractDelegateComponent::value().
Accessors* QQmlAdaptorModel::accessors |
Definition at line 78 of file qqmladaptormodel_p.h.
Referenced by ~QQmlAdaptorModel(), columnCount(), invalidateModel(), isValid(), rowCount(), and setModel().
QQmlListAccessor QQmlAdaptorModel::list |
Definition at line 80 of file qqmladaptormodel_p.h.
Referenced by VDMListDelegateDataType::columnCount(), VDMListDelegateDataType::createItem(), VDMListDelegateDataType::metaCall(), VDMListDelegateDataType::notify(), VDMListDelegateDataType::rowCount(), setModel(), and VDMListDelegateDataType::value().
QTypeRevision QQmlAdaptorModel::modelItemRevision = QTypeRevision::zero() |
Definition at line 86 of file qqmladaptormodel_p.h.
Referenced by VDMAbstractItemModelDataType::initializeMetaType(), VDMListDelegateDataType::toDynamicMetaObject(), and useImportVersion().
QV4::PersistentValue QQmlAdaptorModel::modelStrongReference |
Definition at line 84 of file qqmladaptormodel_p.h.
Referenced by setModel().
QPersistentModelIndex QQmlAdaptorModel::rootIndex |
Definition at line 79 of file qqmladaptormodel_p.h.
Referenced by VDMAbstractItemModelDataType::canFetchMore(), VDMAbstractItemModelDataType::columnCount(), VDMAbstractItemModelDataType::fetchMore(), VDMAbstractItemModelDataType::get_hasModelChildren(), QQmlDMAbstractItemModelData::hasModelChildren(), VDMAbstractItemModelDataType::modelIndex(), VDMAbstractItemModelDataType::parentModelIndex(), VDMAbstractItemModelDataType::rowCount(), and VDMAbstractItemModelDataType::value().