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

#include <qqmlpropertydata_p.h>

Collaboration diagram for QQmlPropertyData:

Classes

struct  Flags

Public Types

enum  WriteFlag { BypassInterceptor = 0x01 , DontRemoveBinding = 0x02 , RemoveBindingOnAliasWrite = 0x04 , HasInternalIndex = 0x8 }
typedef QObjectPrivate::StaticMetaCallFunction StaticMetaCallFunction

Public Member Functions

bool operator== (const QQmlPropertyData &) const
Flags flags () const
void setFlags (Flags f)
bool isValid () const
bool isConstant () const
bool isWritable () const
void setWritable (bool onoff)
bool isResettable () const
bool isAlias () const
bool isFinal () const
bool isOverridden () const
bool isRequired () const
bool isFunction () const
bool isQObject () const
bool isEnum () const
bool isQList () const
bool isVarProperty () const
bool isQVariant () const
bool isVMEFunction () const
bool hasArguments () const
bool isSignal () const
bool isVMESignal () const
bool isV4Function () const
bool isSignalHandler () const
bool hasMetaObject () const
bool hasStaticMetaCallFunction () const
bool isOverridableSignal () const
bool isCloned () const
bool isConstructor () const
bool notifiesViaBindable () const
bool acceptsQBinding () const
bool hasOverride () const
bool hasRevision () const
QMetaType propType () const
void setPropType (QMetaType pt)
int notifyIndex () const
void setNotifyIndex (int idx)
bool overrideIndexIsProperty () const
void setOverrideIndexIsProperty (bool onoff)
int overrideIndex () const
void setOverrideIndex (int idx)
int coreIndex () const
void setCoreIndex (int idx)
int aliasTarget () const
void setAliasTarget (int target)
QTypeRevision revision () const
void setRevision (QTypeRevision revision)
QTypeRevision typeVersion () const
void setTypeVersion (QTypeRevision typeVersion)
QQmlPropertyCacheMethodArgumentsarguments () const
void setArguments (QQmlPropertyCacheMethodArguments *args)
const QMetaObjectmetaObject () const
void setMetaObject (const QMetaObject *metaObject)
QMetaMethod metaMethod () const
int metaObjectOffset () const
void setMetaObjectOffset (int off)
StaticMetaCallFunction staticMetaCallFunction () const
void trySetStaticMetaCallFunction (StaticMetaCallFunction f, unsigned relativePropertyIndex)
quint16 relativePropertyIndex () const
void load (const QMetaProperty &)
void load (const QMetaMethod &)
QString name (QObject *object) const
QString name (const QMetaObject *metaObject) const
void markAsOverrideOf (QQmlPropertyData *predecessor)
void readProperty (QObject *target, void *property) const
template<QMetaObject::Call call>
void doMetacall (QObject *object, int idx, void **argv) const
void readPropertyWithArgs (QObject *target, void *args[]) const
bool writeProperty (QObject *target, void *value, WriteFlags flags) const
bool resetProperty (QObject *target, WriteFlags flags) const
QUntypedBindable propertyBindable (QObject *target) const

Static Public Member Functions

static Flags flagsForProperty (const QMetaProperty &)
static Flags defaultSignalFlags ()
static Flags defaultSlotFlags ()

Friends

class QQmlPropertyCache

Detailed Description

Definition at line 25 of file qqmlpropertydata_p.h.

Member Typedef Documentation

◆ StaticMetaCallFunction

typedef QObjectPrivate::StaticMetaCallFunction QQmlPropertyData::StaticMetaCallFunction

Definition at line 36 of file qqmlpropertydata_p.h.

Member Enumeration Documentation

◆ WriteFlag

Enumerator
BypassInterceptor 
DontRemoveBinding 
RemoveBindingOnAliasWrite 
HasInternalIndex 

Definition at line 28 of file qqmlpropertydata_p.h.

Member Function Documentation

◆ acceptsQBinding()

bool QQmlPropertyData::acceptsQBinding ( ) const
inline

Definition at line 238 of file qqmlpropertydata_p.h.

References notifiesViaBindable().

Here is the call graph for this function:

◆ aliasTarget()

int QQmlPropertyData::aliasTarget ( ) const
inline

Definition at line 276 of file qqmlpropertydata_p.h.

References isAlias().

Here is the call graph for this function:

◆ arguments()

QQmlPropertyCacheMethodArguments * QQmlPropertyData::arguments ( ) const
inline

Definition at line 311 of file qqmlpropertydata_p.h.

References hasMetaObject().

Here is the call graph for this function:

◆ coreIndex()

int QQmlPropertyData::coreIndex ( ) const
inline

Definition at line 268 of file qqmlpropertydata_p.h.

Referenced by isValid().

Here is the caller graph for this function:

◆ defaultSignalFlags()

Flags QQmlPropertyData::defaultSignalFlags ( )
inlinestatic

Definition at line 439 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::FunctionType, QQmlPropertyData::Flags::setIsSignal(), QQmlPropertyData::Flags::setIsVMESignal(), and QQmlPropertyData::Flags::setType().

Here is the call graph for this function:

◆ defaultSlotFlags()

Flags QQmlPropertyData::defaultSlotFlags ( )
inlinestatic

Definition at line 448 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::FunctionType, QQmlPropertyData::Flags::setIsVMEFunction(), and QQmlPropertyData::Flags::setType().

Here is the call graph for this function:

◆ doMetacall()

template<QMetaObject::Call call>
void QQmlPropertyData::doMetacall ( QObject * object,
int idx,
void ** argv ) const
inline

Definition at line 392 of file qqmlpropertydata_p.h.

◆ flags()

Flags QQmlPropertyData::flags ( ) const
inline

Definition at line 194 of file qqmlpropertydata_p.h.

◆ flagsForProperty()

QQmlPropertyData::Flags QQmlPropertyData::flagsForProperty ( const QMetaProperty & p)
static

Definition at line 43 of file qqmlpropertycache.cpp.

◆ hasArguments()

bool QQmlPropertyData::hasArguments ( ) const
inline

Definition at line 219 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ hasMetaObject()

bool QQmlPropertyData::hasMetaObject ( ) const
inline

Definition at line 224 of file qqmlpropertydata_p.h.

Referenced by arguments(), metaMethod(), metaObject(), and setArguments().

Here is the caller graph for this function:

◆ hasOverride()

bool QQmlPropertyData::hasOverride ( ) const
inline

Definition at line 240 of file qqmlpropertydata_p.h.

References overrideIndex().

Here is the call graph for this function:

◆ hasRevision()

bool QQmlPropertyData::hasRevision ( ) const
inline

Definition at line 241 of file qqmlpropertydata_p.h.

◆ hasStaticMetaCallFunction()

bool QQmlPropertyData::hasStaticMetaCallFunction ( ) const
inline

Definition at line 226 of file qqmlpropertydata_p.h.

Referenced by relativePropertyIndex().

Here is the caller graph for this function:

◆ isAlias()

bool QQmlPropertyData::isAlias ( ) const
inline

Definition at line 208 of file qqmlpropertydata_p.h.

References isFunction().

Referenced by aliasTarget(), setAliasTarget(), staticMetaCallFunction(), and trySetStaticMetaCallFunction().

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

◆ isCloned()

bool QQmlPropertyData::isCloned ( ) const
inline

Definition at line 234 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isConstant()

bool QQmlPropertyData::isConstant ( ) const
inline

Definition at line 204 of file qqmlpropertydata_p.h.

◆ isConstructor()

bool QQmlPropertyData::isConstructor ( ) const
inline

Definition at line 235 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isEnum()

bool QQmlPropertyData::isEnum ( ) const
inline

Definition at line 214 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::EnumType.

◆ isFinal()

bool QQmlPropertyData::isFinal ( ) const
inline

Definition at line 209 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isFunction()

bool QQmlPropertyData::isFunction ( ) const
inline

Definition at line 212 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::FunctionType.

Referenced by hasArguments(), isAlias(), isCloned(), isConstructor(), isFinal(), isRequired(), isResettable(), isSignal(), isV4Function(), isVMEFunction(), isVMESignal(), isWritable(), metaMethod(), notifiesViaBindable(), setWritable(), staticMetaCallFunction(), and trySetStaticMetaCallFunction().

Here is the caller graph for this function:

◆ isOverridableSignal()

bool QQmlPropertyData::isOverridableSignal ( ) const
inline

Definition at line 232 of file qqmlpropertydata_p.h.

◆ isOverridden()

bool QQmlPropertyData::isOverridden ( ) const
inline

Definition at line 210 of file qqmlpropertydata_p.h.

◆ isQList()

bool QQmlPropertyData::isQList ( ) const
inline

Definition at line 215 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::QListType.

◆ isQObject()

bool QQmlPropertyData::isQObject ( ) const
inline

Definition at line 213 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::QObjectDerivedType.

◆ isQVariant()

bool QQmlPropertyData::isQVariant ( ) const
inline

Definition at line 217 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::QVariantType.

◆ isRequired()

bool QQmlPropertyData::isRequired ( ) const
inline

Definition at line 211 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isResettable()

bool QQmlPropertyData::isResettable ( ) const
inline

Definition at line 207 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isSignal()

bool QQmlPropertyData::isSignal ( ) const
inline

Definition at line 220 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isSignalHandler()

bool QQmlPropertyData::isSignalHandler ( ) const
inline

Definition at line 223 of file qqmlpropertydata_p.h.

◆ isV4Function()

bool QQmlPropertyData::isV4Function ( ) const
inline

Definition at line 222 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isValid()

bool QQmlPropertyData::isValid ( ) const
inline

Definition at line 202 of file qqmlpropertydata_p.h.

References coreIndex().

Here is the call graph for this function:

◆ isVarProperty()

bool QQmlPropertyData::isVarProperty ( ) const
inline

Definition at line 216 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::VarPropertyType.

◆ isVMEFunction()

bool QQmlPropertyData::isVMEFunction ( ) const
inline

Definition at line 218 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isVMESignal()

bool QQmlPropertyData::isVMESignal ( ) const
inline

Definition at line 221 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isWritable()

bool QQmlPropertyData::isWritable ( ) const
inline

Definition at line 205 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ load() [1/2]

void QQmlPropertyData::load ( const QMetaMethod & m)

Definition at line 81 of file qqmlpropertycache.cpp.

◆ load() [2/2]

void QQmlPropertyData::load ( const QMetaProperty & p)

Definition at line 70 of file qqmlpropertycache.cpp.

◆ markAsOverrideOf()

void QQmlPropertyData::markAsOverrideOf ( QQmlPropertyData * predecessor)

Definition at line 698 of file qqmlpropertycache.cpp.

◆ metaMethod()

QMetaMethod QQmlPropertyData::metaMethod ( ) const
inline

Definition at line 335 of file qqmlpropertydata_p.h.

References hasMetaObject(), and isFunction().

Here is the call graph for this function:

◆ metaObject()

const QMetaObject * QQmlPropertyData::metaObject ( ) const
inline

Definition at line 322 of file qqmlpropertydata_p.h.

References hasMetaObject().

Here is the call graph for this function:

◆ metaObjectOffset()

int QQmlPropertyData::metaObjectOffset ( ) const
inline

Definition at line 342 of file qqmlpropertydata_p.h.

◆ name() [1/2]

QString QQmlPropertyData::name ( const QMetaObject * metaObject) const
inline

Definition at line 371 of file qqmlpropertydata_p.h.

◆ name() [2/2]

QString QQmlPropertyData::name ( QObject * object) const
inline

Definition at line 370 of file qqmlpropertydata_p.h.

◆ notifiesViaBindable()

bool QQmlPropertyData::notifiesViaBindable ( ) const
inline

Definition at line 237 of file qqmlpropertydata_p.h.

References isFunction().

Referenced by acceptsQBinding().

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

◆ notifyIndex()

int QQmlPropertyData::notifyIndex ( ) const
inline

Definition at line 249 of file qqmlpropertydata_p.h.

◆ operator==()

bool QQmlPropertyData::operator== ( const QQmlPropertyData & other) const
inline

Definition at line 497 of file qqmlpropertydata_p.h.

◆ overrideIndex()

int QQmlPropertyData::overrideIndex ( ) const
inline

Definition at line 260 of file qqmlpropertydata_p.h.

Referenced by hasOverride().

Here is the caller graph for this function:

◆ overrideIndexIsProperty()

bool QQmlPropertyData::overrideIndexIsProperty ( ) const
inline

Definition at line 257 of file qqmlpropertydata_p.h.

◆ propertyBindable()

QUntypedBindable QQmlPropertyData::propertyBindable ( QObject * target) const
inline

Definition at line 428 of file qqmlpropertydata_p.h.

◆ propType()

QMetaType QQmlPropertyData::propType ( ) const
inline

Definition at line 243 of file qqmlpropertydata_p.h.

◆ readProperty()

void QQmlPropertyData::readProperty ( QObject * target,
void * property ) const
inline

Definition at line 383 of file qqmlpropertydata_p.h.

◆ readPropertyWithArgs()

void QQmlPropertyData::readPropertyWithArgs ( QObject * target,
void * args[] ) const
inline

Definition at line 400 of file qqmlpropertydata_p.h.

◆ relativePropertyIndex()

quint16 QQmlPropertyData::relativePropertyIndex ( ) const
inline

Definition at line 364 of file qqmlpropertydata_p.h.

References hasStaticMetaCallFunction().

Here is the call graph for this function:

◆ resetProperty()

bool QQmlPropertyData::resetProperty ( QObject * target,
WriteFlags flags ) const
inline

Definition at line 419 of file qqmlpropertydata_p.h.

◆ revision()

QTypeRevision QQmlPropertyData::revision ( ) const
inline

Definition at line 287 of file qqmlpropertydata_p.h.

◆ setAliasTarget()

void QQmlPropertyData::setAliasTarget ( int target)
inline

Definition at line 281 of file qqmlpropertydata_p.h.

References isAlias().

Here is the call graph for this function:

◆ setArguments()

void QQmlPropertyData::setArguments ( QQmlPropertyCacheMethodArguments * args)
inline

Definition at line 316 of file qqmlpropertydata_p.h.

References hasMetaObject().

Here is the call graph for this function:

◆ setCoreIndex()

void QQmlPropertyData::setCoreIndex ( int idx)
inline

Definition at line 269 of file qqmlpropertydata_p.h.

◆ setFlags()

void QQmlPropertyData::setFlags ( Flags f)
inline

Definition at line 195 of file qqmlpropertydata_p.h.

◆ setMetaObject()

void QQmlPropertyData::setMetaObject ( const QMetaObject * metaObject)
inline

Definition at line 328 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::setHasMetaObject().

Here is the call graph for this function:

◆ setMetaObjectOffset()

void QQmlPropertyData::setMetaObjectOffset ( int off)
inline

Definition at line 343 of file qqmlpropertydata_p.h.

◆ setNotifyIndex()

void QQmlPropertyData::setNotifyIndex ( int idx)
inline

Definition at line 250 of file qqmlpropertydata_p.h.

◆ setOverrideIndex()

void QQmlPropertyData::setOverrideIndex ( int idx)
inline

Definition at line 261 of file qqmlpropertydata_p.h.

◆ setOverrideIndexIsProperty()

void QQmlPropertyData::setOverrideIndexIsProperty ( bool onoff)
inline

Definition at line 258 of file qqmlpropertydata_p.h.

◆ setPropType()

void QQmlPropertyData::setPropType ( QMetaType pt)
inline

Definition at line 244 of file qqmlpropertydata_p.h.

◆ setRevision()

void QQmlPropertyData::setRevision ( QTypeRevision revision)
inline

Definition at line 288 of file qqmlpropertydata_p.h.

◆ setTypeVersion()

void QQmlPropertyData::setTypeVersion ( QTypeRevision typeVersion)
inline

Definition at line 309 of file qqmlpropertydata_p.h.

◆ setWritable()

void QQmlPropertyData::setWritable ( bool onoff)
inline

Definition at line 206 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ staticMetaCallFunction()

StaticMetaCallFunction QQmlPropertyData::staticMetaCallFunction ( ) const
inline

Definition at line 350 of file qqmlpropertydata_p.h.

References isAlias(), and isFunction().

Here is the call graph for this function:

◆ trySetStaticMetaCallFunction()

void QQmlPropertyData::trySetStaticMetaCallFunction ( StaticMetaCallFunction f,
unsigned relativePropertyIndex )
inline

Definition at line 356 of file qqmlpropertydata_p.h.

References isAlias(), and isFunction().

Here is the call graph for this function:

◆ typeVersion()

QTypeRevision QQmlPropertyData::typeVersion ( ) const
inline

Definition at line 308 of file qqmlpropertydata_p.h.

◆ writeProperty()

bool QQmlPropertyData::writeProperty ( QObject * target,
void * value,
WriteFlags flags ) const
inline

Definition at line 408 of file qqmlpropertydata_p.h.

◆ QQmlPropertyCache

friend class QQmlPropertyCache
friend

Definition at line 457 of file qqmlpropertydata_p.h.

Member Data Documentation

◆ m_arguments

QQmlPropertyCacheMethodArguments* QQmlPropertyData::m_arguments = nullptr

Definition at line 476 of file qqmlpropertydata_p.h.

◆ m_encodedAliasTargetIndex

int QQmlPropertyData::m_encodedAliasTargetIndex

Definition at line 485 of file qqmlpropertydata_p.h.

◆ m_metaObject

const QMetaObject* QQmlPropertyData::m_metaObject

Definition at line 482 of file qqmlpropertydata_p.h.

◆ m_staticMetaCallFunction

StaticMetaCallFunction QQmlPropertyData::m_staticMetaCallFunction

Definition at line 479 of file qqmlpropertydata_p.h.


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