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

#include <qqmllistaccessor_p.h>

+ Collaboration diagram for QQmlListAccessor:

Public Types

enum  Type {
  Invalid , StringList , UrlList , VariantList ,
  ObjectList , ListProperty , Instance , Integer ,
  Sequence
}
 

Public Member Functions

 QQmlListAccessor ()
 
 ~QQmlListAccessor ()
 
QVariant list () const
 
void setList (const QVariant &)
 
bool isValid () const
 
qsizetype count () const
 
QVariant at (qsizetype) const
 
void set (qsizetype, const QVariant &)
 
Type type () const
 

Detailed Description

Definition at line 24 of file qqmllistaccessor_p.h.

Member Enumeration Documentation

◆ Type

Enumerator
Invalid 
StringList 
UrlList 
VariantList 
ObjectList 
ListProperty 
Instance 
Integer 
Sequence 

Definition at line 39 of file qqmllistaccessor_p.h.

Constructor & Destructor Documentation

◆ QQmlListAccessor()

QT_BEGIN_NAMESPACE QQmlListAccessor::QQmlListAccessor ( )

Definition at line 15 of file qqmllistaccessor.cpp.

◆ ~QQmlListAccessor()

QQmlListAccessor::~QQmlListAccessor ( )

Definition at line 20 of file qqmllistaccessor.cpp.

Member Function Documentation

◆ at()

QVariant QQmlListAccessor::at ( qsizetype idx) const

Definition at line 177 of file qqmllistaccessor.cpp.

References at, QQmlListReference::at(), QVariant::constData(), count(), QMetaType::fromType(), QVariant::fromValue(), Instance, Integer, Invalid, ListProperty, QVariant::metaType(), ObjectList, Q_ASSERT, Sequence, StringList, UrlList, QMetaSequence::valueAtIndex(), QMetaSequence::valueMetaType(), and VariantList.

Referenced by VDMListDelegateDataType::createItem(), VDMListDelegateDataType::metaCall(), VDMListDelegateDataType::notify(), and VDMListDelegateDataType::value().

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

◆ count()

qsizetype QQmlListAccessor::count ( ) const

Definition at line 146 of file qqmllistaccessor.cpp.

References QVariant::constData(), count(), QMetaType::fromType(), Instance, Integer, Invalid, ListProperty, QVariant::metaType(), ObjectList, Q_ASSERT, Sequence, QMetaContainer::size(), StringList, UrlList, and VariantList.

Referenced by at(), count(), VDMListDelegateDataType::createItem(), VDMListDelegateDataType::rowCount(), and set().

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

◆ isValid()

bool QQmlListAccessor::isValid ( ) const

Definition at line 266 of file qqmllistaccessor.cpp.

References Invalid.

◆ list()

QVariant QQmlListAccessor::list ( ) const

Definition at line 24 of file qqmllistaccessor.cpp.

Referenced by QQmlAdaptorModel::setModel().

+ Here is the caller graph for this function:

◆ set()

void QQmlListAccessor::set ( qsizetype idx,
const QVariant & value )

Definition at line 218 of file qqmllistaccessor.cpp.

References QVariant::constData(), QVariant::convert(), count(), QVariant::data(), QMetaType::fromType(), Instance, Integer, Invalid, ListProperty, QVariant::metaType(), ObjectList, Q_ASSERT, Sequence, QMetaSequence::setValueAtIndex(), StringList, UrlList, QMetaSequence::valueMetaType(), and VariantList.

Referenced by VDMListDelegateDataType::metaCall().

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

◆ setList()

void QQmlListAccessor::setList ( const QVariant & v)

Definition at line 29 of file qqmllistaccessor.cpp.

References QMetaSequence::canGetValueAtConstIterator(), QMetaSequence::canGetValueAtIndex(), QSet< T >::constBegin(), QVariant::constData(), QMetaType::convert(), QMetaType::fromType(), QVariant::fromValue(), QMetaContainer::hasConstIterator(), QMetaContainer::hasSize(), i, Instance, Integer, Invalid, QMetaType::IsQmlList, QVariant::isValid(), it, ListProperty, QVariant::metaType(), ObjectList, ok, QMetaType::PointerToQObject, QList< T >::push_back(), QQmlMetaType::qmlListType(), qWarning, Sequence, StringList, toVariant(), UrlList, QVariant::value(), and VariantList.

Referenced by QQmlAdaptorModel::setModel().

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

◆ type()

Type QQmlListAccessor::type ( ) const
inline

Definition at line 51 of file qqmllistaccessor_p.h.

Referenced by VDMListDelegateDataType::columnCount(), and QQmlAdaptorModel::setModel().

+ Here is the caller graph for this function:

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