![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmlproperty_p.h>
Classes | |
struct | ResolvedAlias |
Public Types | |
enum class | InitFlag { None = 0x0 , AllowId = 0x1 , AllowSignal = 0x2 } |
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 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 () |
Definition at line 40 of file qqmlproperty_p.h.
Enumerator | |
---|---|
None | |
DontEnable | |
OverrideSticky |
Definition at line 112 of file qqmlproperty_p.h.
|
strong |
Enumerator | |
---|---|
None | |
AllowId | |
AllowSignal |
Definition at line 43 of file qqmlproperty_p.h.
|
inline |
Definition at line 62 of file qqmlproperty_p.h.
|
static |
Returns the binding associated with this property, or 0 if no binding exists.
Definition at line 810 of file qqmlproperty.cpp.
|
static |
Definition at line 911 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 2248 of file qqmlproperty.cpp.
|
static |
Definition at line 198 of file qqmlproperty.cpp.
QQmlRefPointer< QQmlContextData > QQmlPropertyPrivate::effectiveContext | ( | ) | const |
Definition at line 221 of file qqmlproperty.cpp.
|
inline |
Definition at line 64 of file qqmlproperty_p.h.
|
inlinestatic |
Definition at line 66 of file qqmlproperty_p.h.
|
static |
Definition at line 940 of file qqmlproperty.cpp.
|
static |
Given an alias property specified by baseObject and baseIndex, this function computes the alias target.
Definition at line 976 of file qqmlproperty.cpp.
|
static |
Return the property corresponding to name.
Definition at line 2211 of file qqmlproperty.cpp.
|
static |
Return the signal corresponding to name.
Definition at line 2183 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 2263 of file qqmlproperty.cpp.
|
inlinestatic |
Definition at line 132 of file qqmlproperty_p.h.
Initialize from the default property of obj.
Definition at line 137 of file qqmlproperty.cpp.
void QQmlPropertyPrivate::initProperty | ( | QObject * | obj, |
const QString & | name, | ||
InitFlags | flags = InitFlag::None ) |
Definition at line 232 of file qqmlproperty.cpp.
bool QQmlPropertyPrivate::isValueType | ( | ) | const |
Definition at line 599 of file qqmlproperty.cpp.
|
static |
Definition at line 2156 of file qqmlproperty.cpp.
QMetaType QQmlPropertyPrivate::propertyType | ( | ) | const |
Definition at line 604 of file qqmlproperty.cpp.
QQmlProperty::PropertyTypeCategory QQmlPropertyPrivate::propertyTypeCategory | ( | ) | const |
Definition at line 521 of file qqmlproperty.cpp.
QQmlPropertyPrivate::Q_DECLARE_FLAGS | ( | InitFlags | , |
InitFlag | ) |
|
static |
Definition at line 1974 of file qqmlproperty.cpp.
QVariant QQmlPropertyPrivate::readValueProperty | ( | ) |
Definition at line 1152 of file qqmlproperty.cpp.
|
static |
|
static |
|
static |
Definition at line 886 of file qqmlproperty.cpp.
|
static |
Definition at line 1965 of file qqmlproperty.cpp.
|
static |
Definition at line 1348 of file qqmlproperty.cpp.
|
static |
Definition at line 216 of file qqmlproperty.cpp.
|
static |
Definition at line 2162 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 830 of file qqmlproperty.cpp.
|
static |
Definition at line 985 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 1040 of file qqmlproperty.cpp.
|
static |
Returns the expression associated with this signal property, or 0 if no signal expression exists.
Definition at line 1014 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 474 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 1051 of file qqmlproperty.cpp.
QQmlProperty::Type QQmlPropertyPrivate::type | ( | ) | const |
Definition at line 616 of file qqmlproperty.cpp.
Definition at line 1214 of file qqmlproperty.cpp.
|
static |
Definition at line 1237 of file qqmlproperty.cpp.
|
static |
Definition at line 2067 of file qqmlproperty.cpp.
|
static |
Definition at line 1763 of file qqmlproperty.cpp.
|
static |
Definition at line 1249 of file qqmlproperty.cpp.
bool QQmlPropertyPrivate::writeValueProperty | ( | const QVariant & | value, |
QQmlPropertyData::WriteFlags | flags ) |
Definition at line 1281 of file qqmlproperty.cpp.
|
static |
Definition at line 1331 of file qqmlproperty.cpp.
QQmlRefPointer<QQmlContextData> QQmlPropertyPrivate::context |
Definition at line 50 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 54 of file qqmlproperty_p.h.
QPointer<QQmlEngine> QQmlPropertyPrivate::engine |
Definition at line 51 of file qqmlproperty_p.h.
QString QQmlPropertyPrivate::nameCache |
Definition at line 57 of file qqmlproperty_p.h.
Definition at line 52 of file qqmlproperty_p.h.
QQmlPropertyData QQmlPropertyPrivate::valueTypeData |
Definition at line 55 of file qqmlproperty_p.h.