Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
VDMAbstractItemModelDataType Class Referencefinal

#include <qqmldmabstractitemmodeldata_p.h>

+ Inheritance diagram for VDMAbstractItemModelDataType:
+ Collaboration diagram for VDMAbstractItemModelDataType:

Public Member Functions

 VDMAbstractItemModelDataType (QQmlAdaptorModel *model)
 
bool notify (const QQmlAdaptorModel &, const QList< QQmlDelegateModelItem * > &items, int index, int count, const QVector< int > &roles) const override
 
void replaceWatchedRoles (QQmlAdaptorModel &, const QList< QByteArray > &oldRoles, const QList< QByteArray > &newRoles) const override
 
void initializeConstructor (QQmlAdaptorModelEngineData *const data)
 
void objectDestroyed (QObject *) override
 
int metaCall (QObject *object, QMetaObject::Call call, int id, void **arguments) override
 
int rowCount (const QQmlAdaptorModel &model) const override
 
int columnCount (const QQmlAdaptorModel &model) const override
 
void cleanup (QQmlAdaptorModel &) const override
 
QVariant value (const QQmlAdaptorModel &model, int index, const QString &role) const override
 
QVariant parentModelIndex (const QQmlAdaptorModel &model) const override
 
QVariant modelIndex (const QQmlAdaptorModel &model, int index) const override
 
bool canFetchMore (const QQmlAdaptorModel &model) const override
 
void fetchMore (QQmlAdaptorModel &model) const override
 
QQmlDelegateModelItemcreateItem (QQmlAdaptorModel &model, const QQmlRefPointer< QQmlDelegateModelItemMetaType > &metaType, int index, int row, int column) override
 
void initializeMetaType (const QQmlAdaptorModel &model)
 
- Public Member Functions inherited from QQmlRefCounted< VDMAbstractItemModelDataType >
void release () const
 
- Public Member Functions inherited from QQmlRefCount
 QQmlRefCount ()
 
void addref () const
 
int count () const
 
- Public Member Functions inherited from QQmlAdaptorModel::Accessors
 Accessors ()
 
virtual ~Accessors ()
 
- Public Member Functions inherited from QAbstractDynamicMetaObject
 ~QAbstractDynamicMetaObject ()
 
QMetaObjecttoDynamicMetaObject (QObject *) override
 
virtual int createProperty (const char *, const char *)
 
virtual int metaCall (QMetaObject::Call, int _id, void **)
 
- Public Member Functions inherited from QDynamicMetaObjectData
virtual ~QDynamicMetaObjectData ()
 
- Public Member Functions inherited from QMetaObject
const char * className () const
 Returns the class name.
 
const QMetaObjectsuperClass () const
 Returns the meta-object of the superclass, or \nullptr if there is no such object.
 
bool inherits (const QMetaObject *metaObject) const noexcept
 Returns true if the class described by this QMetaObject inherits the type described by metaObject; otherwise returns false.
 
QObjectcast (QObject *obj) const
 
const QObjectcast (const QObject *obj) const
 
QString tr (const char *s, const char *c, int n=-1) const
 
QMetaType metaType () const
 
int methodOffset () const
 Returns the method offset for this class; i.e.
 
int enumeratorOffset () const
 Returns the enumerator offset for this class; i.e.
 
int propertyOffset () const
 Returns the property offset for this class; i.e.
 
int classInfoOffset () const
 Returns the class information offset for this class; i.e.
 
int constructorCount () const
 
int methodCount () const
 Returns the number of methods in this class, including the number of methods provided by each base class.
 
int enumeratorCount () const
 Returns the number of enumerators in this class.
 
int propertyCount () const
 Returns the number of properties in this class, including the number of properties provided by each base class.
 
int classInfoCount () const
 Returns the number of items of class information in this class.
 
int indexOfConstructor (const char *constructor) const
 
int indexOfMethod (const char *method) const
 Finds method and returns its index; otherwise returns -1.
 
int indexOfSignal (const char *signal) const
 Finds signal and returns its index; otherwise returns -1.
 
int indexOfSlot (const char *slot) const
 Finds slot and returns its index; otherwise returns -1.
 
int indexOfEnumerator (const char *name) const
 Finds enumerator name and returns its index; otherwise returns -1.
 
int indexOfProperty (const char *name) const
 Finds property name and returns its index; otherwise returns -1.
 
int indexOfClassInfo (const char *name) const
 Finds class information item name and returns its index; otherwise returns -1.
 
QMetaMethod constructor (int index) const
 
QMetaMethod method (int index) const
 Returns the meta-data for the method with the given index.
 
QMetaEnum enumerator (int index) const
 Returns the meta-data for the enumerator with the given index.
 
QMetaProperty property (int index) const
 Returns the meta-data for the property with the given index.
 
QMetaClassInfo classInfo (int index) const
 Returns the meta-data for the item of class information with the given index.
 
QMetaProperty userProperty () const
 
template<typename... Args>
QtPrivate::Invoke::IfNotOldStyleArgs< QObject *, Args... > newInstance (Args &&... arguments) const
 
int static_metacall (Call, int, void **) const
 
 ~Connection ()
 
 Connection ()
 
 Connection (const Connection &other)
 
Connectionoperator= (const Connection &other)
 
 operator RestrictedBool () const
 
 Connection (Connection &&other) noexcept
 
void swap (Connection &other) noexcept
 

Static Public Member Functions

static QV4::ReturnedValue get_hasModelChildren (const QV4::FunctionObject *b, const QV4::Value *thisObject, const QV4::Value *, int)
 
- Static Public Member Functions inherited from QMetaObject
static bool checkConnectArgs (const char *signal, const char *method)
 Returns true if the signal and method arguments are compatible; otherwise returns false.
 
static bool checkConnectArgs (const QMetaMethod &signal, const QMetaMethod &method)
 
static QByteArray normalizedSignature (const char *method)
 Normalizes the signature of the given method.
 
static QByteArray normalizedType (const char *type)
 
static Connection connect (const QObject *sender, int signal_index, const QObject *receiver, int method_index, int type=0, int *types=nullptr)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, int method_index)
 
static bool disconnectOne (const QObject *sender, int signal_index, const QObject *receiver, int method_index)
 
static void connectSlotsByName (QObject *o)
 Searches recursively for all child objects of the given object, and connects matching signals from them to slots of object that follow the following form:
 
static void activate (QObject *sender, int signal_index, void **argv)
 
static void activate (QObject *sender, const QMetaObject *, int local_signal_index, void **argv)
 
static void activate (QObject *sender, int signal_offset, int local_signal_index, void **argv)
 
static bool invokeMethod (QObject *obj, const char *member, Qt::ConnectionType, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
 \threadsafe This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \obsolete [6.5] Please use the variadic overload of this function
 
static bool invokeMethod (QObject *obj, const char *member, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
 
static bool invokeMethod (QObject *obj, const char *member, Qt::ConnectionType type, QGenericArgument val0, QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
 
static bool invokeMethod (QObject *obj, const char *member, QGenericArgument val0, QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
 
template<typename ReturnArg , typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, Qt::ConnectionType c, QTemplatedMetaMethodReturnArgument< ReturnArg > r, Args &&... arguments)
 
template<typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, Qt::ConnectionType c, Args &&... arguments)
 
template<typename ReturnArg , typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, QTemplatedMetaMethodReturnArgument< ReturnArg > r, Args &&... arguments)
 
template<typename... Args>
static QtPrivate::Invoke::IfNotOldStyleArgs< bool, Args... > invokeMethod (QObject *obj, const char *member, Args &&... arguments)
 
template<typename Func >
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Func > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, typename QtPrivate::Callable< Func >::ReturnType *ret)
 
template<typename Func >
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Func > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, typename QtPrivate::Callable< Func >::ReturnType *ret)
 
template<typename Func , typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, QTemplatedMetaMethodReturnArgument< typename QtPrivate::Callable< Func, Args... >::ReturnType > ret, Args &&...args)
 
template<typename Func , typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Qt::ConnectionType type, Args &&...args)
 
template<typename Func , typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, QTemplatedMetaMethodReturnArgument< typename QtPrivate::Callable< Func, Args... >::ReturnType > ret, Args &&...args)
 
template<typename Func , typename... Args>
static std::enable_if_t<!std::disjunction_v< std::is_convertible< Func, const char * >, QtPrivate::Invoke::AreOldStyleArgs< Args... > >, bool > invokeMethod (typename QtPrivate::ContextTypeForFunctor< Func >::ContextType *object, Func &&function, Args &&...args)
 
static int metacall (QObject *, Call, int, void **)
 
template<const QMetaObject & MO>
static constexpr const QMetaObjectstaticMetaObject ()
 

Public Attributes

QV4::PersistentValue prototype
 
QList< int > propertyRoles
 
QList< int > watchedRoleIds
 
QList< QByteArraywatchedRoles
 
QHash< QByteArray, int > roleNames
 
QQmlAdaptorModelmodel
 
int propertyOffset
 
int signalOffset
 
- Public Attributes inherited from QQmlAdaptorModel::Accessors
QScopedPointer< QMetaObject, QScopedPointerPodDeletermetaObject
 
QQmlPropertyCache::ConstPtr propertyCache
 
- Public Attributes inherited from QMetaObject
struct QMetaObject::Data d
 

Additional Inherited Members

- Public Types inherited from QMetaObject
enum  Call {
  InvokeMetaMethod , ReadProperty , WriteProperty , ResetProperty ,
  CreateInstance , IndexOfMethod , RegisterPropertyMetaType , RegisterMethodArgumentMetaType ,
  BindableProperty , CustomCall , ConstructInPlace
}
 
typedef void *Connection::* RestrictedBool
 
- Protected Member Functions inherited from QQmlRefCounted< VDMAbstractItemModelDataType >
 ~QQmlRefCounted ()
 

Detailed Description

Definition at line 75 of file qqmldmabstractitemmodeldata_p.h.

Constructor & Destructor Documentation

◆ VDMAbstractItemModelDataType()

VDMAbstractItemModelDataType::VDMAbstractItemModelDataType ( QQmlAdaptorModel * model)
inline

Definition at line 81 of file qqmldmabstractitemmodeldata_p.h.

Member Function Documentation

◆ canFetchMore()

bool VDMAbstractItemModelDataType::canFetchMore ( const QQmlAdaptorModel & model) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 278 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), model, and QQmlAdaptorModel::rootIndex.

+ Here is the call graph for this function:

◆ cleanup()

void VDMAbstractItemModelDataType::cleanup ( QQmlAdaptorModel & ) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 227 of file qqmldmabstractitemmodeldata_p.h.

References QQmlRefCounted< VDMAbstractItemModelDataType >::release().

+ Here is the call graph for this function:

◆ columnCount()

int VDMAbstractItemModelDataType::columnCount ( const QQmlAdaptorModel & model) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 220 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), model, and QQmlAdaptorModel::rootIndex.

+ Here is the call graph for this function:

◆ createItem()

QQmlDelegateModelItem * VDMAbstractItemModelDataType::createItem ( QQmlAdaptorModel & model,
const QQmlRefPointer< QQmlDelegateModelItemMetaType > & metaType,
int index,
int row,
int column )
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 291 of file qqmldmabstractitemmodeldata_p.h.

References initializeMetaType(), QQmlAdaptorModel::Accessors::metaObject, QMetaObject::metaType(), and model.

+ Here is the call graph for this function:

◆ fetchMore()

void VDMAbstractItemModelDataType::fetchMore ( QQmlAdaptorModel & model) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 285 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), model, and QQmlAdaptorModel::rootIndex.

+ Here is the call graph for this function:

◆ get_hasModelChildren()

static QV4::ReturnedValue VDMAbstractItemModelDataType::get_hasModelChildren ( const QV4::FunctionObject * b,
const QV4::Value * thisObject,
const QV4::Value * ,
int  )
inlinestatic

Definition at line 156 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), QV4::Value::as(), QV4::Scope::engine, QQmlDelegateModelItem::model, model, o, QStringLiteral, RETURN_RESULT, QQmlAdaptorModel::rootIndex, and QV4::ExecutionEngine::throwTypeError().

Referenced by initializeConstructor().

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

◆ initializeConstructor()

◆ initializeMetaType()

void VDMAbstractItemModelDataType::initializeMetaType ( const QQmlAdaptorModel & model)
inline

Definition at line 301 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModelEngineData::addProperty(), QQmlAdaptorModel::aim(), QList< T >::append(), QSet< T >::begin(), QQmlPropertyCache::createStandalone(), QScopedPointer< T, Cleanup >::data(), QHash< Key, T >::insert(), it, QQmlAdaptorModel::Accessors::metaObject, model, QQmlAdaptorModel::modelItemRevision, QQmlAdaptorModel::Accessors::propertyCache, propertyRoles, QByteArrayLiteral, QScopedPointer< T, Cleanup >::reset(), QAbstractItemModel::roleNames(), roleNames, QList< T >::size(), and QMetaObjectBuilder::toMetaObject().

Referenced by createItem(), and value().

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

◆ metaCall()

int VDMAbstractItemModelDataType::metaCall ( QObject * object,
QMetaObject::Call call,
int id,
void ** arguments )
inlineoverridevirtual

Reimplemented from QAbstractDynamicMetaObject.

Definition at line 208 of file qqmldmabstractitemmodeldata_p.h.

References arguments, and metaCall().

Referenced by metaCall().

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

◆ modelIndex()

QVariant VDMAbstractItemModelDataType::modelIndex ( const QQmlAdaptorModel & model,
int index ) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 270 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), QQmlAdaptorModel::columnAt(), QVariant::fromValue(), model, QQmlAdaptorModel::rootIndex, and QQmlAdaptorModel::rowAt().

Referenced by value().

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

◆ notify()

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

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 88 of file qqmldmabstractitemmodeldata_p.h.

References QMetaObject::activate(), QListSpecialMethodsBase< T >::contains(), emit, QHash< Key, T >::end(), QHash< Key, T >::find(), i, QListSpecialMethodsBase< T >::indexOf(), QList< T >::isEmpty(), it, item, items, propertyRoles, Q_ASSERT, roleNames, signalOffset, QList< T >::size(), watchedRoleIds, and watchedRoles.

+ Here is the call graph for this function:

◆ objectDestroyed()

void VDMAbstractItemModelDataType::objectDestroyed ( QObject * )
inlineoverridevirtual

Reimplemented from QDynamicMetaObjectData.

Definition at line 203 of file qqmldmabstractitemmodeldata_p.h.

References QQmlRefCounted< VDMAbstractItemModelDataType >::release().

+ Here is the call graph for this function:

◆ parentModelIndex()

QVariant VDMAbstractItemModelDataType::parentModelIndex ( const QQmlAdaptorModel & model) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 263 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), QVariant::fromValue(), model, and QQmlAdaptorModel::rootIndex.

+ Here is the call graph for this function:

◆ replaceWatchedRoles()

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

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 143 of file qqmldmabstractitemmodeldata_p.h.

References QList< T >::clear(), oldRoles, and watchedRoleIds.

+ Here is the call graph for this function:

◆ rowCount()

int VDMAbstractItemModelDataType::rowCount ( const QQmlAdaptorModel & model) const
inlineoverridevirtual

Reimplemented from QQmlAdaptorModel::Accessors.

Definition at line 213 of file qqmldmabstractitemmodeldata_p.h.

References QQmlAdaptorModel::aim(), model, and QQmlAdaptorModel::rootIndex.

+ Here is the call graph for this function:

◆ value()

QVariant VDMAbstractItemModelDataType::value ( const QQmlAdaptorModel & model,
int index,
const QString & role ) const
inlineoverridevirtual

Member Data Documentation

◆ model

◆ propertyOffset

int VDMAbstractItemModelDataType::propertyOffset

◆ propertyRoles

◆ prototype

QV4::PersistentValue VDMAbstractItemModelDataType::prototype

◆ roleNames

QHash<QByteArray, int> VDMAbstractItemModelDataType::roleNames

◆ signalOffset

int VDMAbstractItemModelDataType::signalOffset

Definition at line 329 of file qqmldmabstractitemmodeldata_p.h.

Referenced by notify().

◆ watchedRoleIds

QList<int> VDMAbstractItemModelDataType::watchedRoleIds

Definition at line 324 of file qqmldmabstractitemmodeldata_p.h.

Referenced by notify(), and replaceWatchedRoles().

◆ watchedRoles

QList<QByteArray> VDMAbstractItemModelDataType::watchedRoles

Definition at line 325 of file qqmldmabstractitemmodeldata_p.h.

Referenced by notify().


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