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 isVirtual () const
bool doesOverride () 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

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 253 of file qqmlpropertydata_p.h.

References notifiesViaBindable().

Here is the call graph for this function:

◆ aliasTarget()

int QQmlPropertyData::aliasTarget ( ) const
inline

Definition at line 291 of file qqmlpropertydata_p.h.

References isAlias().

Here is the call graph for this function:

◆ arguments()

QQmlPropertyCacheMethodArguments * QQmlPropertyData::arguments ( ) const
inline

Definition at line 326 of file qqmlpropertydata_p.h.

References hasMetaObject().

Here is the call graph for this function:

◆ coreIndex()

int QQmlPropertyData::coreIndex ( ) const
inline

Definition at line 283 of file qqmlpropertydata_p.h.

Referenced by isValid().

Here is the caller graph for this function:

◆ defaultSignalFlags()

Flags QQmlPropertyData::defaultSignalFlags ( )
inlinestatic

Definition at line 454 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 463 of file qqmlpropertydata_p.h.

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

Here is the call graph for this function:

◆ doesOverride()

bool QQmlPropertyData::doesOverride ( ) const
inline

Definition at line 224 of file qqmlpropertydata_p.h.

◆ doMetacall()

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

Definition at line 407 of file qqmlpropertydata_p.h.

◆ flags()

Flags QQmlPropertyData::flags ( ) const
inline

Definition at line 207 of file qqmlpropertydata_p.h.

◆ flagsForProperty()

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

Definition at line 166 of file qqmlpropertycache.cpp.

◆ hasArguments()

bool QQmlPropertyData::hasArguments ( ) const
inline

Definition at line 234 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ hasMetaObject()

bool QQmlPropertyData::hasMetaObject ( ) const
inline

Definition at line 239 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 255 of file qqmlpropertydata_p.h.

References overrideIndex().

Here is the call graph for this function:

◆ hasRevision()

bool QQmlPropertyData::hasRevision ( ) const
inline

Definition at line 256 of file qqmlpropertydata_p.h.

◆ hasStaticMetaCallFunction()

bool QQmlPropertyData::hasStaticMetaCallFunction ( ) const
inline

Definition at line 241 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 221 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 249 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isConstant()

bool QQmlPropertyData::isConstant ( ) const
inline

Definition at line 217 of file qqmlpropertydata_p.h.

◆ isConstructor()

bool QQmlPropertyData::isConstructor ( ) const
inline

Definition at line 250 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isEnum()

bool QQmlPropertyData::isEnum ( ) const
inline

Definition at line 229 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::EnumType.

◆ isFinal()

bool QQmlPropertyData::isFinal ( ) const
inline

Definition at line 222 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isFunction()

bool QQmlPropertyData::isFunction ( ) const
inline

Definition at line 227 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 247 of file qqmlpropertydata_p.h.

◆ isOverridden()

bool QQmlPropertyData::isOverridden ( ) const
inline

Definition at line 225 of file qqmlpropertydata_p.h.

◆ isQList()

bool QQmlPropertyData::isQList ( ) const
inline

Definition at line 230 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::QListType.

◆ isQObject()

bool QQmlPropertyData::isQObject ( ) const
inline

Definition at line 228 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::QObjectDerivedType.

◆ isQVariant()

bool QQmlPropertyData::isQVariant ( ) const
inline

Definition at line 232 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::QVariantType.

◆ isRequired()

bool QQmlPropertyData::isRequired ( ) const
inline

Definition at line 226 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isResettable()

bool QQmlPropertyData::isResettable ( ) const
inline

Definition at line 220 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isSignal()

bool QQmlPropertyData::isSignal ( ) const
inline

Definition at line 235 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isSignalHandler()

bool QQmlPropertyData::isSignalHandler ( ) const
inline

Definition at line 238 of file qqmlpropertydata_p.h.

◆ isV4Function()

bool QQmlPropertyData::isV4Function ( ) const
inline

Definition at line 237 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isValid()

bool QQmlPropertyData::isValid ( ) const
inline

Definition at line 215 of file qqmlpropertydata_p.h.

References coreIndex().

Here is the call graph for this function:

◆ isVarProperty()

bool QQmlPropertyData::isVarProperty ( ) const
inline

Definition at line 231 of file qqmlpropertydata_p.h.

References QQmlPropertyData::Flags::VarPropertyType.

◆ isVirtual()

bool QQmlPropertyData::isVirtual ( ) const
inline

Definition at line 223 of file qqmlpropertydata_p.h.

◆ isVMEFunction()

bool QQmlPropertyData::isVMEFunction ( ) const
inline

Definition at line 233 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isVMESignal()

bool QQmlPropertyData::isVMESignal ( ) const
inline

Definition at line 236 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ isWritable()

bool QQmlPropertyData::isWritable ( ) const
inline

Definition at line 218 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 206 of file qqmlpropertycache.cpp.

◆ load() [2/2]

void QQmlPropertyData::load ( const QMetaProperty & p)

Definition at line 195 of file qqmlpropertycache.cpp.

◆ markAsOverrideOf()

void QQmlPropertyData::markAsOverrideOf ( QQmlPropertyData * predecessor)

Definition at line 878 of file qqmlpropertycache.cpp.

◆ metaMethod()

QMetaMethod QQmlPropertyData::metaMethod ( ) const
inline

Definition at line 350 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 337 of file qqmlpropertydata_p.h.

References hasMetaObject().

Here is the call graph for this function:

◆ metaObjectOffset()

int QQmlPropertyData::metaObjectOffset ( ) const
inline

Definition at line 357 of file qqmlpropertydata_p.h.

◆ name() [1/2]

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

Definition at line 386 of file qqmlpropertydata_p.h.

◆ name() [2/2]

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

Definition at line 385 of file qqmlpropertydata_p.h.

◆ notifiesViaBindable()

bool QQmlPropertyData::notifiesViaBindable ( ) const
inline

Definition at line 252 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 264 of file qqmlpropertydata_p.h.

◆ operator==()

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

Definition at line 512 of file qqmlpropertydata_p.h.

◆ overrideIndex()

int QQmlPropertyData::overrideIndex ( ) const
inline

Definition at line 275 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 272 of file qqmlpropertydata_p.h.

◆ propertyBindable()

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

Definition at line 443 of file qqmlpropertydata_p.h.

◆ propType()

QMetaType QQmlPropertyData::propType ( ) const
inline

Definition at line 258 of file qqmlpropertydata_p.h.

◆ readProperty()

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

Definition at line 398 of file qqmlpropertydata_p.h.

◆ readPropertyWithArgs()

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

Definition at line 415 of file qqmlpropertydata_p.h.

◆ relativePropertyIndex()

quint16 QQmlPropertyData::relativePropertyIndex ( ) const
inline

Definition at line 379 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 434 of file qqmlpropertydata_p.h.

◆ revision()

QTypeRevision QQmlPropertyData::revision ( ) const
inline

Definition at line 302 of file qqmlpropertydata_p.h.

◆ setAliasTarget()

void QQmlPropertyData::setAliasTarget ( int target)
inline

Definition at line 296 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 331 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 284 of file qqmlpropertydata_p.h.

◆ setFlags()

void QQmlPropertyData::setFlags ( Flags f)
inline

Definition at line 208 of file qqmlpropertydata_p.h.

◆ setMetaObject()

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

Definition at line 343 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 358 of file qqmlpropertydata_p.h.

◆ setNotifyIndex()

void QQmlPropertyData::setNotifyIndex ( int idx)
inline

Definition at line 265 of file qqmlpropertydata_p.h.

◆ setOverrideIndex()

void QQmlPropertyData::setOverrideIndex ( int idx)
inline

Definition at line 276 of file qqmlpropertydata_p.h.

◆ setOverrideIndexIsProperty()

void QQmlPropertyData::setOverrideIndexIsProperty ( bool onoff)
inline

Definition at line 273 of file qqmlpropertydata_p.h.

◆ setPropType()

void QQmlPropertyData::setPropType ( QMetaType pt)
inline

Definition at line 259 of file qqmlpropertydata_p.h.

◆ setRevision()

void QQmlPropertyData::setRevision ( QTypeRevision revision)
inline

Definition at line 303 of file qqmlpropertydata_p.h.

◆ setTypeVersion()

void QQmlPropertyData::setTypeVersion ( QTypeRevision typeVersion)
inline

Definition at line 324 of file qqmlpropertydata_p.h.

◆ setWritable()

void QQmlPropertyData::setWritable ( bool onoff)
inline

Definition at line 219 of file qqmlpropertydata_p.h.

References isFunction().

Here is the call graph for this function:

◆ staticMetaCallFunction()

StaticMetaCallFunction QQmlPropertyData::staticMetaCallFunction ( ) const
inline

Definition at line 365 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 371 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 323 of file qqmlpropertydata_p.h.

◆ writeProperty()

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

Definition at line 423 of file qqmlpropertydata_p.h.

◆ QQmlPropertyCache

friend class QQmlPropertyCache
friend

Definition at line 472 of file qqmlpropertydata_p.h.

Member Data Documentation

◆ m_arguments

QQmlPropertyCacheMethodArguments* QQmlPropertyData::m_arguments = nullptr

Definition at line 491 of file qqmlpropertydata_p.h.

◆ m_encodedAliasTargetIndex

int QQmlPropertyData::m_encodedAliasTargetIndex

Definition at line 500 of file qqmlpropertydata_p.h.

◆ m_metaObject

const QMetaObject* QQmlPropertyData::m_metaObject

Definition at line 497 of file qqmlpropertydata_p.h.

◆ m_staticMetaCallFunction

StaticMetaCallFunction QQmlPropertyData::m_staticMetaCallFunction

Definition at line 494 of file qqmlpropertydata_p.h.


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