![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQml More...
#include <qqmlproperty_p.h>
Classes | |
| struct | ResolvedAlias |
Public Types | |
| enum class | InitFlag { None = 0x0 , AllowId = 0x1 , AllowSignal = 0x2 } |
| enum class | ListCopyResult { Copied , WasEqual , TypeMismatch } |
| enum | BindingFlag { None = 0 , DontEnable = 0x1 , OverrideSticky = 0x2 } |
Public Member Functions | |
| Q_DECLARE_FLAGS (InitFlags, InitFlag) | |
| QQmlPropertyPrivate () | |
| QQmlPropertyIndex | encodedIndex () const |
| QQmlRefPointer< QQmlContextData > | effectiveContext () 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 ListCopyResult | convertToQQmlListProperty (QQmlListProperty< QObject > *listProperty, QMetaType actualListType, const QVariant &value) |
| static QVariant | convertToWriteTargetType (const QVariant &value, QMetaType targetMetaType) |
| 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 bool | removeBinding (const QQmlProperty &that, BindingFlags flags=None) |
| static bool | removeBinding (QObject *o, QQmlPropertyIndex index, BindingFlags flags=None) |
| static bool | removeBinding (QQmlAbstractBinding *b, QQmlPropertyPrivate::BindingFlags flags=None) |
| static QQmlAbstractBinding * | binding (QObject *, QQmlPropertyIndex index) |
| static QQmlProperty | restore (QObject *, const QQmlPropertyData &, const QQmlPropertyData *, const QQmlRefPointer< QQmlContextData > &) |
| static QQmlPropertyPrivate * | get (const QQmlProperty &p) |
| static QQmlAbstractBinding * | binding (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 QQmlBoundSignalExpression * | signalExpression (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< QUrl > | urlSequence (const QVariant &value) |
| static QList< QUrl > | urlSequence (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< QQmlContextData > | context |
| QPointer< QQmlEngine > | engine |
| QPointer< QObject > | object |
| QQmlPropertyData | core |
| QQmlPropertyData | valueTypeData |
| QString | nameCache |
Additional Inherited Members | |
| Protected Member Functions inherited from QQmlRefCounted< QQmlPropertyPrivate > | |
| ~QQmlRefCounted () | |
\inmodule QtQml
Definition at line 40 of file qqmlproperty_p.h.
| Enumerator | |
|---|---|
| None | |
| DontEnable | |
| OverrideSticky | |
Definition at line 132 of file qqmlproperty_p.h.
|
strong |
| Enumerator | |
|---|---|
| None | |
| AllowId | |
| AllowSignal | |
Definition at line 43 of file qqmlproperty_p.h.
|
strong |
| Enumerator | |
|---|---|
| Copied | |
| WasEqual | |
| TypeMismatch | |
Definition at line 51 of file qqmlproperty_p.h.
|
inline |
Definition at line 70 of file qqmlproperty_p.h.
|
static |
Returns the binding associated with this property, or 0 if no binding exists.
Definition at line 816 of file qqmlproperty.cpp.
|
static |
Definition at line 917 of file qqmlproperty.cpp.
|
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 2302 of file qqmlproperty.cpp.
|
static |
Attempts to convert value to a QQmlListProperty. The existing listProperty will be modified (so use a temporary one if that is not desired). listProperty is passed as a QQmlListProperty<QObject>, but might actually be a list property of a more specific type. The actual type of the list property is given by actualListType.
Definition at line 1643 of file qqmlproperty.cpp.
|
static |
Definition at line 1795 of file qqmlproperty.cpp.
|
static |
Definition at line 204 of file qqmlproperty.cpp.
| QQmlRefPointer< QQmlContextData > QQmlPropertyPrivate::effectiveContext | ( | ) | const |
Definition at line 227 of file qqmlproperty.cpp.
|
inline |
Definition at line 72 of file qqmlproperty_p.h.
|
inlinestatic |
Definition at line 74 of file qqmlproperty_p.h.
|
static |
Definition at line 946 of file qqmlproperty.cpp.
|
static |
Given an alias property specified by baseObject and baseIndex, this function computes the alias target.
Definition at line 982 of file qqmlproperty.cpp.
|
static |
Return the property corresponding to name.
Definition at line 2265 of file qqmlproperty.cpp.
|
static |
Return the signal corresponding to name.
Definition at line 2237 of file qqmlproperty.cpp.
signal_index MUST be in the signal index range (see QObjectPrivate::signalIndex()). This is different from QMetaMethod::methodIndex().
Definition at line 2317 of file qqmlproperty.cpp.
|
inlinestatic |
Definition at line 152 of file qqmlproperty_p.h.
Initialize from the default property of obj.
Definition at line 143 of file qqmlproperty.cpp.
| void QQmlPropertyPrivate::initProperty | ( | QObject * | obj, |
| const QString & | name, | ||
| InitFlags | flags = InitFlag::None ) |
Definition at line 238 of file qqmlproperty.cpp.
| bool QQmlPropertyPrivate::isValueType | ( | ) | const |
Definition at line 605 of file qqmlproperty.cpp.
|
static |
Definition at line 2210 of file qqmlproperty.cpp.
| QMetaType QQmlPropertyPrivate::propertyType | ( | ) | const |
Definition at line 610 of file qqmlproperty.cpp.
| QQmlProperty::PropertyTypeCategory QQmlPropertyPrivate::propertyTypeCategory | ( | ) | const |
Definition at line 527 of file qqmlproperty.cpp.
| QQmlPropertyPrivate::Q_DECLARE_FLAGS | ( | InitFlags | , |
| InitFlag | ) |
|
static |
Definition at line 2028 of file qqmlproperty.cpp.
| QVariant QQmlPropertyPrivate::readValueProperty | ( | ) |
Definition at line 1158 of file qqmlproperty.cpp.
|
static |
|
static |
|
static |
Definition at line 892 of file qqmlproperty.cpp.
|
static |
Definition at line 2019 of file qqmlproperty.cpp.
|
static |
Definition at line 1354 of file qqmlproperty.cpp.
|
static |
Definition at line 222 of file qqmlproperty.cpp.
|
static |
Definition at line 2216 of file qqmlproperty.cpp.
|
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 836 of file qqmlproperty.cpp.
|
static |
Definition at line 991 of file qqmlproperty.cpp.
|
static |
Set the signal expression associated with this signal property to expr.
A reference to expr will be added by QML.
Definition at line 1046 of file qqmlproperty.cpp.
|
static |
Returns the expression associated with this signal property, or 0 if no signal expression exists.
Definition at line 1020 of file qqmlproperty.cpp.
| 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 480 of file qqmlproperty.cpp.
|
static |
Set the signal expression associated with this signal property to expr.
Ownership of expr transfers to QML.
Definition at line 1057 of file qqmlproperty.cpp.
| QQmlProperty::Type QQmlPropertyPrivate::type | ( | ) | const |
Definition at line 622 of file qqmlproperty.cpp.
Definition at line 1220 of file qqmlproperty.cpp.
|
static |
Definition at line 1243 of file qqmlproperty.cpp.
|
static |
Definition at line 2121 of file qqmlproperty.cpp.
|
static |
Definition at line 1899 of file qqmlproperty.cpp.
|
static |
Definition at line 1255 of file qqmlproperty.cpp.
| bool QQmlPropertyPrivate::writeValueProperty | ( | const QVariant & | value, |
| QQmlPropertyData::WriteFlags | flags ) |
Definition at line 1287 of file qqmlproperty.cpp.
|
static |
Definition at line 1337 of file qqmlproperty.cpp.
| QQmlRefPointer<QQmlContextData> QQmlPropertyPrivate::context |
Definition at line 58 of file qqmlproperty_p.h.
Referenced by testing.tools.safetynet_job.JobRun::_BuildRunMetadata(), testing.tools.safetynet_job.JobRun::_IncrementalRun(), testing.tools.safetynet_job.JobRun::_WriteCheckpoint(), testing.tools.safetynet_job.JobRun::_WriteRawJson(), and testing.tools.safetynet_job.JobRun::Run().
| QQmlPropertyData QQmlPropertyPrivate::core |
Definition at line 62 of file qqmlproperty_p.h.
| QPointer<QQmlEngine> QQmlPropertyPrivate::engine |
Definition at line 59 of file qqmlproperty_p.h.
| QString QQmlPropertyPrivate::nameCache |
Definition at line 65 of file qqmlproperty_p.h.
Definition at line 60 of file qqmlproperty_p.h.
| QQmlPropertyData QQmlPropertyPrivate::valueTypeData |
Definition at line 63 of file qqmlproperty_p.h.