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
QQmlPropertyPrivate Class Referencefinal

#include <qqmlproperty_p.h>

+ Inheritance diagram for QQmlPropertyPrivate:
+ Collaboration diagram for QQmlPropertyPrivate:

Classes

struct  ResolvedAlias
 

Public Types

enum class  InitFlag { None = 0x0 , AllowId = 0x1 , AllowSignal = 0x2 }
 
enum  BindingFlag { None = 0 , DontEnable = 0x1 }
 

Public Member Functions

 Q_DECLARE_FLAGS (InitFlags, InitFlag)
 
 QQmlPropertyPrivate ()
 
QQmlPropertyIndex encodedIndex () const
 
QQmlRefPointer< QQmlContextDataeffectiveContext () const
 
void initProperty (QObject *obj, const QString &name, InitFlags flags=InitFlag::None)
 
void initDefault (QObject *obj)
 Initialize from the default property of obj.
 
bool isValueType () const
 
QMetaType propertyType () const
 
QQmlProperty::Type type () const
 
QQmlProperty::PropertyTypeCategory propertyTypeCategory () const
 
QVariant readValueProperty ()
 
bool writeValueProperty (const QVariant &, QQmlPropertyData::WriteFlags)
 
int signalIndex () const
 
- Public Member Functions inherited from QQmlRefCounted< QQmlPropertyPrivate >
void release () const
 
- Public Member Functions inherited from QQmlRefCount
 QQmlRefCount ()
 
void addref () const
 
int count () const
 

Static Public Member Functions

static bool resolveUrlsOnAssignment ()
 
static QQmlPropertyIndex encodedIndex (const QQmlPropertyData &core, const QQmlPropertyData &valueTypeData)
 
static QQmlMetaObject rawMetaObjectForType (QMetaType metaType)
 
static bool writeEnumProperty (const QMetaProperty &prop, int idx, QObject *object, const QVariant &value, int flags)
 
static bool writeValueProperty (QObject *, const QQmlPropertyData &, const QQmlPropertyData &valueTypeData, const QVariant &, const QQmlRefPointer< QQmlContextData > &, QQmlPropertyData::WriteFlags flags={})
 
static bool resetValueProperty (QObject *, const QQmlPropertyData &, const QQmlPropertyData &valueTypeData, const QQmlRefPointer< QQmlContextData > &, QQmlPropertyData::WriteFlags flags={})
 
static bool write (QObject *, const QQmlPropertyData &, const QVariant &, const QQmlRefPointer< QQmlContextData > &, QQmlPropertyData::WriteFlags flags={})
 
static bool reset (QObject *, const QQmlPropertyData &, QQmlPropertyData::WriteFlags flags={})
 
static void findAliasTarget (QObject *, QQmlPropertyIndex, QObject **, QQmlPropertyIndex *)
 
static ResolvedAlias findAliasTarget (QObject *baseObject, QQmlPropertyIndex baseIndex)
 
static void setBinding (QQmlAbstractBinding *binding, BindingFlags flags=None, QQmlPropertyData::WriteFlags writeFlags=QQmlPropertyData::DontRemoveBinding)
 
static void removeBinding (const QQmlProperty &that)
 
static void removeBinding (QObject *o, QQmlPropertyIndex index)
 
static void removeBinding (QQmlAbstractBinding *b)
 
static QQmlAbstractBindingbinding (QObject *, QQmlPropertyIndex index)
 
static QQmlProperty restore (QObject *, const QQmlPropertyData &, const QQmlPropertyData *, const QQmlRefPointer< QQmlContextData > &)
 
static QQmlPropertyPrivateget (const QQmlProperty &p)
 
static QQmlAbstractBindingbinding (const QQmlProperty &that)
 Returns the binding associated with this property, or 0 if no binding exists.
 
static void setBinding (const QQmlProperty &that, QQmlAbstractBinding *)
 Set the binding associated with this property to newBinding.
 
static QQmlBoundSignalExpressionsignalExpression (const QQmlProperty &that)
 Returns the expression associated with this signal property, or 0 if no signal expression exists.
 
static void setSignalExpression (const QQmlProperty &that, QQmlBoundSignalExpression *)
 Set the signal expression associated with this signal property to expr.
 
static void takeSignalExpression (const QQmlProperty &that, QQmlBoundSignalExpression *)
 Set the signal expression associated with this signal property to expr.
 
static bool write (const QQmlProperty &that, const QVariant &, QQmlPropertyData::WriteFlags)
 
static QQmlPropertyIndex propertyIndex (const QQmlProperty &that)
 
static QMetaMethod findSignalByName (const QMetaObject *mo, const QByteArray &)
 Return the signal corresponding to name.
 
static QMetaProperty findPropertyByName (const QMetaObject *mo, const QByteArray &)
 Return the property corresponding to name.
 
static bool connect (const QObject *sender, int signal_index, const QObject *receiver, int method_index, int type=0, int *types=nullptr)
 Connect sender signal_index to receiver method_index with the specified type and types.
 
static void flushSignal (const QObject *sender, int signal_index)
 
static QList< QUrlurlSequence (const QVariant &value)
 
static QList< QUrlurlSequence (const QVariant &value, const QQmlRefPointer< QQmlContextData > &ctxt)
 
static QQmlProperty create (QObject *target, const QString &propertyName, const QQmlRefPointer< QQmlContextData > &context, QQmlPropertyPrivate::InitFlags flags)
 

Public Attributes

QQmlRefPointer< QQmlContextDatacontext
 
QPointer< QQmlEngineengine
 
QPointer< QObjectobject
 
QQmlPropertyData core
 
QQmlPropertyData valueTypeData
 
QString nameCache
 

Additional Inherited Members

- Protected Member Functions inherited from QQmlRefCounted< QQmlPropertyPrivate >
 ~QQmlRefCounted ()
 

Detailed Description

Definition at line 40 of file qqmlproperty_p.h.

Member Enumeration Documentation

◆ BindingFlag

Enumerator
None 
DontEnable 

Definition at line 112 of file qqmlproperty_p.h.

◆ InitFlag

enum class QQmlPropertyPrivate::InitFlag
strong
Enumerator
None 
AllowId 
AllowSignal 

Definition at line 43 of file qqmlproperty_p.h.

Constructor & Destructor Documentation

◆ QQmlPropertyPrivate()

QQmlPropertyPrivate::QQmlPropertyPrivate ( )
inline

Definition at line 62 of file qqmlproperty_p.h.

Referenced by create(), and restore().

+ Here is the caller graph for this function:

Member Function Documentation

◆ binding() [1/2]

QQmlAbstractBinding * QQmlPropertyPrivate::binding ( const QQmlProperty & that)
static

Returns the binding associated with this property, or 0 if no binding exists.

Definition at line 797 of file qqmlproperty.cpp.

References binding().

+ Here is the call graph for this function:

◆ binding() [2/2]

QQmlAbstractBinding * QQmlPropertyPrivate::binding ( QObject * object,
QQmlPropertyIndex index )
static

Definition at line 885 of file qqmlproperty.cpp.

References binding(), findAliasTarget(), QQmlData::get(), and QQmlAbstractBinding::ValueTypeProxy.

Referenced by binding(), binding(), QQuickPropertyChanges::changeValue(), QQmlAnyBinding::ofProperty(), QQmlAnyBinding::ofProperty(), QQuickAnchorChanges::saveOriginals(), setBinding(), QV4::QObjectWrapper::setProperty(), QQmlAnyBinding::takeFrom(), and QV4::QQmlValueTypeWrapper::virtualPut().

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

◆ connect()

bool QQmlPropertyPrivate::connect ( const QObject * sender,
int signal_index,
const QObject * receiver,
int method_index,
int type = 0,
int * types = nullptr )
static

Connect sender signal_index to receiver method_index with the specified type and types.

This behaves identically to QMetaObject::connect() except that it connects any lazy "proxy" signal connections set up by QML.

It is possible that this logic should be moved to QMetaObject::connect().

Definition at line 2011 of file qqmlproperty.cpp.

References QMetaObject::connect(), and flush_vme_signal().

Referenced by QQmlWatchProxy::QQmlWatchProxy(), QQmlProperty::connectNotifySignal(), and QQmlDMObjectDataMetaObject::createProperty().

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

◆ create()

QQmlProperty QQmlPropertyPrivate::create ( QObject * target,
const QString & propertyName,
const QQmlRefPointer< QQmlContextData > & context,
QQmlPropertyPrivate::InitFlags flags )
static

Definition at line 196 of file qqmlproperty.cpp.

References QQmlPropertyPrivate(), context, d, and QQmlContextData::engine().

Referenced by QQmlBindPrivate::decodeBinding(), and QQuickPropertyChangesPrivate::property().

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

◆ effectiveContext()

QQmlRefPointer< QQmlContextData > QQmlPropertyPrivate::effectiveContext ( ) const

Definition at line 219 of file qqmlproperty.cpp.

References context, engine, QQmlContextData::get(), and QQmlEngine::rootContext().

Referenced by writeValueProperty().

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

◆ encodedIndex() [1/2]

QQmlPropertyIndex QQmlPropertyPrivate::encodedIndex ( ) const
inline

Definition at line 64 of file qqmlproperty_p.h.

Referenced by removeValuePropertyBinding().

+ Here is the caller graph for this function:

◆ encodedIndex() [2/2]

static QQmlPropertyIndex QQmlPropertyPrivate::encodedIndex ( const QQmlPropertyData & core,
const QQmlPropertyData & valueTypeData )
inlinestatic

Definition at line 66 of file qqmlproperty_p.h.

References QQmlPropertyData::coreIndex().

+ Here is the call graph for this function:

◆ findAliasTarget() [1/2]

void QQmlPropertyPrivate::findAliasTarget ( QObject * object,
QQmlPropertyIndex bindingIndex,
QObject ** targetObject,
QQmlPropertyIndex * targetBindingIndex )
static

Definition at line 914 of file qqmlproperty.cpp.

References findAliasTarget(), QQmlData::get(), QQmlVMEMetaObject::getForProperty(), QQmlPropertyData::isAlias(), object, and Q_ASSERT.

Referenced by binding(), findAliasTarget(), findAliasTarget(), removeBinding(), QQmlComponentPrivate::removePropertyFromRequired(), and QV4::QObjectWrapper::setProperty().

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

◆ findAliasTarget() [2/2]

QQmlPropertyPrivate::ResolvedAlias QQmlPropertyPrivate::findAliasTarget ( QObject * baseObject,
QQmlPropertyIndex baseIndex )
static

Given an alias property specified by baseObject and baseIndex, this function computes the alias target.

Definition at line 950 of file qqmlproperty.cpp.

References findAliasTarget(), QQmlPropertyPrivate::ResolvedAlias::targetIndex, and QQmlPropertyPrivate::ResolvedAlias::targetObject.

+ Here is the call graph for this function:

◆ findPropertyByName()

QMetaProperty QQmlPropertyPrivate::findPropertyByName ( const QMetaObject * mo,
const QByteArray & name )
static

Return the property corresponding to name.

Definition at line 1974 of file qqmlproperty.cpp.

References i, mo, and Q_ASSERT.

Referenced by initProperty().

+ Here is the caller graph for this function:

◆ findSignalByName()

QMetaMethod QQmlPropertyPrivate::findSignalByName ( const QMetaObject * mo,
const QByteArray & name )
static

Return the signal corresponding to name.

Definition at line 1946 of file qqmlproperty.cpp.

References QQmlSignalNames::changedSignalNameToPropertyName(), QMetaProperty::hasNotifySignal(), method, methods, mo, QMetaProperty::notifySignal(), Q_ASSERT, and QMetaMethod::Signal.

Referenced by hasValidSignal(), and initProperty().

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

◆ flushSignal()

void QQmlPropertyPrivate::flushSignal ( const QObject * sender,
int signal_index )
static

signal_index MUST be in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().

Definition at line 2026 of file qqmlproperty.cpp.

References flush_vme_signal().

Referenced by QQmlNotifierEndpoint::connect(), and QV4::QObjectWrapper::method_connect().

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

◆ get()

◆ initDefault()

void QQmlPropertyPrivate::initDefault ( QObject * obj)

Initialize from the default property of obj.

Definition at line 135 of file qqmlproperty.cpp.

References core, QQmlMetaType::defaultProperty(), QQmlPropertyData::isValid(), and QQmlPropertyData::load().

Referenced by QQmlProperty::QQmlProperty(), QQmlProperty::QQmlProperty(), and QQmlProperty::QQmlProperty().

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

◆ initProperty()

◆ isValueType()

bool QQmlPropertyPrivate::isValueType ( ) const

Definition at line 598 of file qqmlproperty.cpp.

References QQmlPropertyData::isValid(), and valueTypeData.

Referenced by QQmlProperty::name(), propertyType(), propertyTypeCategory(), QQmlProperty::propertyTypeName(), and readValueProperty().

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

◆ propertyIndex()

QQmlPropertyIndex QQmlPropertyPrivate::propertyIndex ( const QQmlProperty & that)
static

Definition at line 1919 of file qqmlproperty.cpp.

◆ propertyType()

QMetaType QQmlPropertyPrivate::propertyType ( ) const

Definition at line 603 of file qqmlproperty.cpp.

References core, isValueType(), QQmlProperty::Property, QQmlPropertyData::propType(), type(), and valueTypeData.

Referenced by QQmlProperty::propertyMetaType(), QQmlProperty::propertyType(), and propertyTypeCategory().

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

◆ propertyTypeCategory()

QQmlProperty::PropertyTypeCategory QQmlPropertyPrivate::propertyTypeCategory ( ) const

Definition at line 520 of file qqmlproperty.cpp.

References core, QQmlProperty::InvalidCategory, QQmlPropertyData::isQList(), QQmlPropertyData::isQObject(), isValueType(), QQmlMetaType::isValueType(), QQmlProperty::List, QQmlProperty::Normal, QQmlProperty::Object, QQmlProperty::Property, propertyType(), and type().

Referenced by QQmlProperty::propertyTypeCategory().

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

◆ Q_DECLARE_FLAGS()

QQmlPropertyPrivate::Q_DECLARE_FLAGS ( InitFlags ,
InitFlag  )

◆ rawMetaObjectForType()

QQmlMetaObject QQmlPropertyPrivate::rawMetaObjectForType ( QMetaType metaType)
static

Definition at line 1737 of file qqmlproperty.cpp.

References QMetaType::flags(), metaObject(), QMetaType::metaObject(), QMetaType::PointerToQObject, and QQmlMetaType::rawMetaObjectForType().

Referenced by QObjectPointerBinding::write(), write(), and QObjectPointerBinding::write().

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

◆ readValueProperty()

QVariant QQmlPropertyPrivate::readValueProperty ( )

Definition at line 1127 of file qqmlproperty.cpp.

References args, core, QQmlPropertyData::coreIndex(), QList< T >::data(), engine, QVariant::fromValue(), QQmlListReferencePrivate::init(), QQmlGadgetPtrWrapper::instance(), QQmlPropertyData::isQList(), QQmlPropertyData::isQObject(), QMetaType::isValid(), isValueType(), QQmlPropertyData::propType(), QQmlPropertyData::readProperty(), QQmlPropertyData::readPropertyWithArgs(), QQmlMetaType::valueType(), valueTypeData, and wrapper().

Referenced by QQmlProperty::read().

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

◆ removeBinding() [1/3]

◆ removeBinding() [2/3]

void QQmlPropertyPrivate::removeBinding ( QObject * o,
QQmlPropertyIndex index )
static

Definition at line 868 of file qqmlproperty.cpp.

References findAliasTarget(), o, Q_ASSERT, and removeOldBinding().

+ Here is the call graph for this function:

◆ removeBinding() [3/3]

void QQmlPropertyPrivate::removeBinding ( QQmlAbstractBinding * b)
static

Definition at line 863 of file qqmlproperty.cpp.

References removeBinding().

+ Here is the call graph for this function:

◆ reset()

bool QQmlPropertyPrivate::reset ( QObject * object,
const QQmlPropertyData & property,
QQmlPropertyData::WriteFlags flags = {} )
static

Definition at line 1728 of file qqmlproperty.cpp.

References property.

◆ resetValueProperty()

bool QQmlPropertyPrivate::resetValueProperty ( QObject * object,
const QQmlPropertyData & core,
const QQmlPropertyData & valueTypeData,
const QQmlRefPointer< QQmlContextData > & context,
QQmlPropertyData::WriteFlags flags = {} )
static

Definition at line 1310 of file qqmlproperty.cpp.

References changeThroughGadgetPtrWrapper(), context, core, QQmlPropertyData::coreIndex(), QQmlPropertyData::HasInternalIndex, QQmlPropertyData::isValid(), removeValuePropertyBinding(), valueTypeData, and wrapper().

Referenced by QQmlBinding::slowWrite().

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

◆ resolveUrlsOnAssignment()

bool QQmlPropertyPrivate::resolveUrlsOnAssignment ( )
static

Definition at line 214 of file qqmlproperty.cpp.

Referenced by QQmlBinding::slowWrite().

+ Here is the caller graph for this function:

◆ restore()

QQmlProperty QQmlPropertyPrivate::restore ( QObject * object,
const QQmlPropertyData & data,
const QQmlPropertyData * valueTypeData,
const QQmlRefPointer< QQmlContextData > & ctxt )
static

Definition at line 1925 of file qqmlproperty.cpp.

References QQmlPropertyPrivate(), context, core, engine, object, and valueTypeData.

Referenced by QQmlBinding::update(), and QQmlPropertyToPropertyBinding::update().

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

◆ setBinding() [1/2]

void QQmlPropertyPrivate::setBinding ( const QQmlProperty & that,
QQmlAbstractBinding * newBinding )
static

Set the binding associated with this property to newBinding.

Returns the existing binding (if any), otherwise 0.

newBinding will be enabled, and the returned binding (if any) will be disabled.

Ownership of newBinding transfers to QML. Ownership of the return value is assumed by the caller.

Definition at line 817 of file qqmlproperty.cpp.

References QQmlAbstractBinding::ref, removeBinding(), and setBinding().

+ Here is the call graph for this function:

◆ setBinding() [2/2]

void QQmlPropertyPrivate::setBinding ( QQmlAbstractBinding * binding,
BindingFlags flags = None,
QQmlPropertyData::WriteFlags writeFlags = QQmlPropertyData::DontRemoveBinding )
static

Definition at line 959 of file qqmlproperty.cpp.

References binding(), DontEnable, QQmlData::get(), Q_ASSERT, removeOldBinding(), and writeFlags().

Referenced by QQmlCppBinding::createBindingForNonBindable(), QQmlCppBinding::createTranslationBindingForNonBindable(), QQuickAnchorChanges::execute(), QQmlAnyBinding::installOn(), QQuickAnchorChanges::reverse(), setBinding(), QV4::QObjectWrapper::setProperty(), and QV4::QQmlValueTypeWrapper::virtualPut().

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

◆ setSignalExpression()

void QQmlPropertyPrivate::setSignalExpression ( const QQmlProperty & that,
QQmlBoundSignalExpression * expr )
static

Set the signal expression associated with this signal property to expr.

A reference to expr will be added by QML.

Definition at line 1015 of file qqmlproperty.cpp.

References QQmlRefCount::addref(), and takeSignalExpression().

Referenced by QQuickReplaceSignalHandler::execute(), QQuickReplaceSignalHandler::reverse(), and QQuickReplaceSignalHandler::rewind().

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

◆ signalExpression()

QQmlBoundSignalExpression * QQmlPropertyPrivate::signalExpression ( const QQmlProperty & that)
static

Returns the expression associated with this signal property, or 0 if no signal expression exists.

Definition at line 989 of file qqmlproperty.cpp.

References QQmlBoundSignal::expression(), get(), QQmlData::get(), QQmlNotifierEndpoint::signalIndex(), and QQmlProperty::SignalProperty.

Referenced by QQuickReplaceSignalHandler::saveCurrentValues().

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

◆ signalIndex()

int QQmlPropertyPrivate::signalIndex ( ) const

Returns the index of this property's signal, in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().

Definition at line 473 of file qqmlproperty.cpp.

References core, QQmlPropertyData::coreIndex(), Q_ASSERT, QMetaObjectPrivate::signalIndex(), QQmlProperty::SignalProperty, and type().

Referenced by takeSignalExpression().

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

◆ takeSignalExpression()

void QQmlPropertyPrivate::takeSignalExpression ( const QQmlProperty & that,
QQmlBoundSignalExpression * expr )
static

Set the signal expression associated with this signal property to expr.

Ownership of expr transfers to QML.

Definition at line 1026 of file qqmlproperty.cpp.

References QQmlJavaScriptExpression::engine(), get(), QQmlData::get(), QQmlRefCounted< T >::release(), signal, QQmlNotifierEndpoint::signalIndex(), signalIndex(), QQmlProperty::SignalProperty, and QQmlBoundSignal::takeExpression().

Referenced by setSignalExpression().

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

◆ type()

QQmlProperty::Type QQmlPropertyPrivate::type ( ) const

Definition at line 615 of file qqmlproperty.cpp.

References core, QQmlProperty::Invalid, QQmlPropertyData::isFunction(), QQmlPropertyData::isValid(), QQmlProperty::Property, and QQmlProperty::SignalProperty.

Referenced by propertyType(), propertyTypeCategory(), signalIndex(), and QQmlProperty::type().

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

◆ urlSequence() [1/2]

QList< QUrl > QQmlPropertyPrivate::urlSequence ( const QVariant & value)
static

Definition at line 1177 of file qqmlproperty.cpp.

References QMetaType::fromType(), QString::fromUtf8(), and i.

Referenced by QQmlBinding::slowWrite(), urlSequence(), and write().

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

◆ urlSequence() [2/2]

QList< QUrl > QQmlPropertyPrivate::urlSequence ( const QVariant & value,
const QQmlRefPointer< QQmlContextData > & ctxt )
static

Definition at line 1200 of file qqmlproperty.cpp.

References urlSequence().

+ Here is the call graph for this function:

◆ write() [1/2]

bool QQmlPropertyPrivate::write ( const QQmlProperty & that,
const QVariant & value,
QQmlPropertyData::WriteFlags flags )
static

Definition at line 1830 of file qqmlproperty.cpp.

References QQmlProperty::Property.

◆ write() [2/2]

bool QQmlPropertyPrivate::write ( QObject * object,
const QQmlPropertyData & property,
const QVariant & value,
const QQmlRefPointer< QQmlContextData > & context,
QQmlPropertyData::WriteFlags flags = {} )
static

Definition at line 1473 of file qqmlproperty.cpp.

References QQmlVMEResolvedList::activateSignal(), QMetaSequence::addValue(), QList< T >::at(), QMetaSequence::canAddValue(), QQmlMetaObject::canConvert(), QVariant::constData(), context, QMetaType::convert(), QVariant::convert(), QVariant::data(), QList< T >::data(), QMetaType::flags(), QJSValuePrivate::fromReturnedValue(), QMetaType::fromType(), QString::fromUtf8(), QQmlVMEMetaObject::get(), QQmlEnginePrivate::get(), i, QQmlMetaType::interfaceIId(), QUrl::isEmpty(), QQmlMetaType::isInterface(), QMetaType::IsQmlList, QUrl::isRelative(), iterateQObjectContainer(), list, QQmlVMEMetaObject::list_append(), QQmlVMEMetaObject::list_append_nosignal(), QQmlVMEMetaObject::list_clear(), QQmlVMEMetaObject::list_clear_nosignal(), QQmlMetaType::listValueType(), QV4::ExecutionEngine::metaTypeToJS(), o, ok, QMetaType::PointerToQObject, property, Q_ASSERT, qFuzzyIsNull(), QQmlMetaType::qmlType(), QQmlMetaType::rawMetaObjectForType(), rawMetaObjectForType(), QQmlContextData::resolvedUrl(), QList< T >::size(), QQmlMetaType::toQObject(), tryConvertAndAssign(), urlSequence(), QQmlEnginePrivate::v4engine(), QList< T >::value(), QQmlStringConverters::variantFromString(), QMetaType::view(), and writeEnumProperty().

Referenced by QSmoothedAnimation::init(), QV4::QObjectWrapper::setProperty(), QQuickImageSelector::setSource(), QQuickAnimationPropertyUpdater::setValue(), QQuickTransitionManager::transition(), QQuickPropertyAction::transition(), QSpringAnimation::updateCurrentTime(), QQuickBoundaryReturnJob::updateCurrentTime(), QSmoothedAnimation::updateCurrentTime(), QQmlProperty::write(), QQuickBoundaryRule::write(), QQuickBehavior::write(), and writeValueProperty().

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

◆ writeEnumProperty()

bool QQmlPropertyPrivate::writeEnumProperty ( const QMetaProperty & prop,
int idx,
QObject * object,
const QVariant & value,
int flags )
static

Definition at line 1212 of file qqmlproperty.cpp.

References QMetaProperty::enumerator(), QMetaProperty::isEnumType(), QMetaProperty::isFlagType(), QMetaProperty::isWritable(), QMetaEnum::keysToValue(), QMetaEnum::keyToValue(), QMetaObject::metacall(), QMetaProperty::metaType(), ok, and QMetaObject::WriteProperty.

Referenced by write().

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

◆ writeValueProperty() [1/2]

bool QQmlPropertyPrivate::writeValueProperty ( const QVariant & value,
QQmlPropertyData::WriteFlags flags )

Definition at line 1244 of file qqmlproperty.cpp.

References core, effectiveContext(), valueTypeData, and writeValueProperty().

Referenced by QQmlBinding::slowWrite(), QQmlBinding::slowWrite(), QQmlPropertyToPropertyBinding::update(), and writeValueProperty().

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

◆ writeValueProperty() [2/2]

bool QQmlPropertyPrivate::writeValueProperty ( QObject * object,
const QQmlPropertyData & core,
const QQmlPropertyData & valueTypeData,
const QVariant & value,
const QQmlRefPointer< QQmlContextData > & context,
QQmlPropertyData::WriteFlags flags = {} )
static

Definition at line 1293 of file qqmlproperty.cpp.

References changeThroughGadgetPtrWrapper(), context, core, QQmlPropertyData::coreIndex(), QQmlPropertyData::HasInternalIndex, QQmlPropertyData::isValid(), removeValuePropertyBinding(), valueTypeData, wrapper(), and write().

+ Here is the call graph for this function:

Member Data Documentation

◆ context

◆ core

◆ engine

◆ nameCache

QString QQmlPropertyPrivate::nameCache

Definition at line 57 of file qqmlproperty_p.h.

Referenced by initProperty(), and QQmlProperty::name().

◆ object

◆ valueTypeData


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