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

#include <qqmladaptormodel_p.h>

Inheritance diagram for QQmlAdaptorModel:
Collaboration diagram for QQmlAdaptorModel:

Classes

class  Accessors

Public Member Functions

 QQmlAdaptorModel ()
 ~QQmlAdaptorModel ()
QVariant model () const
void setModel (const QVariant &variant)
void invalidateModel ()
bool isValid () const
int count () const
int rowCount () const
int columnCount () const
int rowAt (int index) const
int columnAt (int index) const
int indexAt (int row, int column) const
void useImportVersion (QTypeRevision revision)
bool adaptsAim () const
QAbstractItemModelaim ()
const QAbstractItemModelaim () const
QVariant value (int index, const QString &role) const
QQmlDelegateModelItemcreateItem (const QQmlRefPointer< QQmlDelegateModelItemMetaType > &metaType, int index)
bool hasProxyObject () const
bool notify (const QList< QQmlDelegateModelItem * > &items, int index, int count, const QVector< int > &roles) const
void replaceWatchedRoles (const QList< QByteArray > &oldRoles, const QList< QByteArray > &newRoles)
QVariant modelIndex (int index) const
QVariant parentModelIndex () const
bool canFetchMore () const
void fetchMore ()
Public Member Functions inherited from QQmlGuard< QObject >
bool isNull () const noexcept
Q_NODISCARD_CTOR QQmlGuard ()
QQmlGuard< QObject > & operator= (const QQmlGuard< QObject > &o)
QObjectobject () const noexcept
void setObject (QObject *g)
QObjectoperator-> () const noexcept
QObjectoperator* () const
 operator QObject * () const noexcept
QObjectdata () const noexcept

Public Attributes

Accessorsaccessors
QPersistentModelIndex rootIndex
QQmlListAccessor list
QV4::PersistentValue modelStrongReference
QTypeRevision modelItemRevision = QTypeRevision::zero()
QQmlDelegateModel::DelegateModelAccess delegateModelAccess = QQmlDelegateModel::Qt5ReadWrite

Additional Inherited Members

Protected Types inherited from QQmlGuardImpl
using ObjectDestroyedFn = void(*)(QQmlGuardImpl *)
Protected Member Functions inherited from QQmlGuardImpl
 ~QQmlGuardImpl ()
 QQmlGuardImpl ()
 QQmlGuardImpl (QObject *)
 QQmlGuardImpl (const QQmlGuardImpl &)
void addGuard ()
void remGuard ()
void setObject (QObject *g)
bool isNull () const noexcept
Protected Attributes inherited from QQmlGuardImpl
QObjecto = nullptr
QQmlGuardImplnext = nullptr
QQmlGuardImpl ** prev = nullptr
ObjectDestroyedFn objectDestroyed = nullptr

Detailed Description

Definition at line 38 of file qqmladaptormodel_p.h.

Constructor & Destructor Documentation

◆ QQmlAdaptorModel()

QQmlAdaptorModel::QQmlAdaptorModel ( )

Definition at line 17 of file qqmladaptormodel.cpp.

◆ ~QQmlAdaptorModel()

QQmlAdaptorModel::~QQmlAdaptorModel ( )

Definition at line 23 of file qqmladaptormodel.cpp.

Member Function Documentation

◆ adaptsAim()

bool QQmlAdaptorModel::adaptsAim ( ) const
inline

Definition at line 107 of file qqmladaptormodel_p.h.

◆ aim() [1/2]

QAbstractItemModel * QQmlAdaptorModel::aim ( )
inline

Definition at line 108 of file qqmladaptormodel_p.h.

◆ aim() [2/2]

const QAbstractItemModel * QQmlAdaptorModel::aim ( ) const
inline

Definition at line 109 of file qqmladaptormodel_p.h.

◆ canFetchMore()

bool QQmlAdaptorModel::canFetchMore ( ) const
inline

Definition at line 143 of file qqmladaptormodel_p.h.

◆ columnAt()

int QQmlAdaptorModel::columnAt ( int index) const

Definition at line 110 of file qqmladaptormodel.cpp.

◆ columnCount()

int QQmlAdaptorModel::columnCount ( ) const

Definition at line 99 of file qqmladaptormodel.cpp.

◆ count()

int QQmlAdaptorModel::count ( ) const

Definition at line 89 of file qqmladaptormodel.cpp.

◆ createItem()

QQmlDelegateModelItem * QQmlAdaptorModel::createItem ( const QQmlRefPointer< QQmlDelegateModelItemMetaType > & metaType,
int index )
inline

Definition at line 113 of file qqmladaptormodel_p.h.

◆ fetchMore()

void QQmlAdaptorModel::fetchMore ( )
inline

Definition at line 144 of file qqmladaptormodel_p.h.

◆ hasProxyObject()

bool QQmlAdaptorModel::hasProxyObject ( ) const
inline

Definition at line 118 of file qqmladaptormodel_p.h.

◆ indexAt()

int QQmlAdaptorModel::indexAt ( int row,
int column ) const

Definition at line 116 of file qqmladaptormodel.cpp.

◆ invalidateModel()

void QQmlAdaptorModel::invalidateModel ( )

Definition at line 76 of file qqmladaptormodel.cpp.

◆ isValid()

bool QQmlAdaptorModel::isValid ( ) const

Definition at line 84 of file qqmladaptormodel.cpp.

◆ model()

QVariant QQmlAdaptorModel::model ( ) const
inline

Definition at line 93 of file qqmladaptormodel_p.h.

◆ modelIndex()

QVariant QQmlAdaptorModel::modelIndex ( int index) const
inline

Definition at line 141 of file qqmladaptormodel_p.h.

◆ notify()

bool QQmlAdaptorModel::notify ( const QList< QQmlDelegateModelItem * > & items,
int index,
int count,
const QVector< int > & roles ) const
inline

Definition at line 131 of file qqmladaptormodel_p.h.

◆ parentModelIndex()

QVariant QQmlAdaptorModel::parentModelIndex ( ) const
inline

Definition at line 142 of file qqmladaptormodel_p.h.

◆ replaceWatchedRoles()

void QQmlAdaptorModel::replaceWatchedRoles ( const QList< QByteArray > & oldRoles,
const QList< QByteArray > & newRoles )
inline

Definition at line 137 of file qqmladaptormodel_p.h.

◆ rowAt()

int QQmlAdaptorModel::rowAt ( int index) const

Definition at line 104 of file qqmladaptormodel.cpp.

◆ rowCount()

int QQmlAdaptorModel::rowCount ( ) const

Definition at line 94 of file qqmladaptormodel.cpp.

◆ setModel()

void QQmlAdaptorModel::setModel ( const QVariant & variant)

Definition at line 28 of file qqmladaptormodel.cpp.

◆ useImportVersion()

void QQmlAdaptorModel::useImportVersion ( QTypeRevision revision)

Definition at line 121 of file qqmladaptormodel.cpp.

◆ value()

QVariant QQmlAdaptorModel::value ( int index,
const QString & role ) const
inline

Definition at line 111 of file qqmladaptormodel_p.h.

Member Data Documentation

◆ accessors

Accessors* QQmlAdaptorModel::accessors

Definition at line 79 of file qqmladaptormodel_p.h.

◆ delegateModelAccess

Definition at line 88 of file qqmladaptormodel_p.h.

◆ list

QQmlListAccessor QQmlAdaptorModel::list

Definition at line 81 of file qqmladaptormodel_p.h.

◆ modelItemRevision

QTypeRevision QQmlAdaptorModel::modelItemRevision = QTypeRevision::zero()

Definition at line 87 of file qqmladaptormodel_p.h.

◆ modelStrongReference

QV4::PersistentValue QQmlAdaptorModel::modelStrongReference

Definition at line 85 of file qqmladaptormodel_p.h.

◆ rootIndex

QPersistentModelIndex QQmlAdaptorModel::rootIndex

Definition at line 80 of file qqmladaptormodel_p.h.


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