Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlpropertycache.cpp File Reference
#include "qqmlpropertycache_p.h"
#include <private/qqmlengine_p.h>
#include <private/qqmlbinding_p.h>
#include <private/qqmlvmemetaobject_p.h>
#include <private/qmetaobject_p.h>
#include <private/qmetaobjectbuilder_p.h>
#include <private/qqmlpropertycachemethodarguments_p.h>
#include <private/qv4value_p.h>
#include <QtCore/qdebug.h>
#include <QtCore/QCryptographicHash>
#include <QtCore/private/qtools_p.h>
#include <limits.h>
#include <algorithm>
+ Include dependency graph for qqmlpropertycache.cpp:

Go to the source code of this file.

Macros

#define Q_INT16_MAX   32767
 

Functions

static int metaObjectSignalCount (const QMetaObject *metaObject)
 
template<typename T >
static QQmlPropertyData qQmlPropertyCacheCreate (const QMetaObject *metaObject, const T &propertyName)
 
static const char * qQmlPropertyCacheToString (QLatin1String string)
 
static QByteArray qQmlPropertyCacheToString (QStringView string)
 
static QByteArray qQmlPropertyCacheToString (const QV4::String *string)
 
template<typename T >
const QQmlPropertyDataqQmlPropertyCacheProperty (QObject *obj, T name, const QQmlRefPointer< QQmlContextData > &context, QQmlPropertyData *local)
 
static const QByteArray stringData (const QMetaObject *mo, int index)
 

Macro Definition Documentation

◆ Q_INT16_MAX

#define Q_INT16_MAX   32767

Definition at line 30 of file qqmlpropertycache.cpp.

Function Documentation

◆ metaObjectSignalCount()

static int metaObjectSignalCount ( const QMetaObject metaObject)
static

Definition at line 32 of file qqmlpropertycache.cpp.

References QMetaObjectPrivate::get(), metaObject(), and QMetaObjectPrivate::signalCount.

Referenced by QQmlPropertyCache::invalidate(), and QQmlPropertyCache::update().

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

◆ qQmlPropertyCacheCreate()

template<typename T >
static QQmlPropertyData qQmlPropertyCacheCreate ( const QMetaObject metaObject,
const T &  propertyName 
)
static

Definition at line 789 of file qqmlpropertycache.cpp.

References QMetaObject::indexOfProperty(), QQmlPropertyData::load(), metaObject(), QMetaMethod::Private, QMetaObject::property(), QMetaObject::propertyOffset(), Q_ASSERT, and QMetaObject::superClass().

Referenced by qQmlPropertyCacheProperty().

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

◆ qQmlPropertyCacheProperty()

template<typename T >
const QQmlPropertyData * qQmlPropertyCacheProperty ( QObject obj,
name,
const QQmlRefPointer< QQmlContextData > &  context,
QQmlPropertyData local 
)

Definition at line 864 of file qqmlpropertycache.cpp.

References cache, context, QQmlRefPointer< T >::data(), QQmlData::get(), QQmlPropertyData::isValid(), QQmlData::propertyCache, QQmlMetaType::propertyCache(), qQmlPropertyCacheCreate(), and qQmlPropertyCacheToString().

+ Here is the call graph for this function:

◆ qQmlPropertyCacheToString() [1/3]

static QByteArray qQmlPropertyCacheToString ( const QV4::String string)
inlinestatic

Definition at line 857 of file qqmlpropertycache.cpp.

◆ qQmlPropertyCacheToString() [2/3]

static const char * qQmlPropertyCacheToString ( QLatin1String  string)
inlinestatic

Definition at line 847 of file qqmlpropertycache.cpp.

Referenced by qQmlPropertyCacheProperty().

+ Here is the caller graph for this function:

◆ qQmlPropertyCacheToString() [3/3]

static QByteArray qQmlPropertyCacheToString ( QStringView  string)
inlinestatic

Definition at line 852 of file qqmlpropertycache.cpp.

◆ stringData()

static const QByteArray stringData ( const QMetaObject mo,
int  index 
)
inlinestatic

Definition at line 914 of file qqmlpropertycache.cpp.

References QByteArray::fromRawData(), and mo.

+ Here is the call graph for this function: