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
qqmlpropertycache.cpp File Reference

(99c7fe45be00b694da4041c5a06e5484f2985dc6)

#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/qqmlsignalnames_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)
 
static QHashedString signalNameToHandlerName (const QHashedString &methodName)
 
static QHashedString signalNameToHandlerName (const QHashedCStringRef &methodName)
 
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 31 of file qqmlpropertycache.cpp.

Function Documentation

◆ metaObjectSignalCount()

static int metaObjectSignalCount ( const QMetaObject * metaObject)
static

Definition at line 33 of file qqmlpropertycache.cpp.

References QMetaObjectPrivate::get(), metaObject(), and QMetaObject::superClass().

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 793 of file qqmlpropertycache.cpp.

References QMetaObject::indexOfProperty(), metaObject(), QMetaMethod::Private, and Q_ASSERT.

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,
T name,
const QQmlRefPointer< QQmlContextData > & context,
QQmlPropertyData * local )

Definition at line 868 of file qqmlpropertycache.cpp.

References cache, context, QQmlData::get(), QQmlPropertyData::isValid(), 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 861 of file qqmlpropertycache.cpp.

◆ qQmlPropertyCacheToString() [2/3]

static const char * qQmlPropertyCacheToString ( QLatin1String string)
inlinestatic

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

◆ signalNameToHandlerName() [1/2]

static QHashedString signalNameToHandlerName ( const QHashedCStringRef & methodName)
static

Definition at line 372 of file qqmlpropertycache.cpp.

References methodName(), and QQmlSignalNames::signalNameToHandlerName().

+ Here is the call graph for this function:

◆ signalNameToHandlerName() [2/2]

static QHashedString signalNameToHandlerName ( const QHashedString & methodName)
static

Definition at line 367 of file qqmlpropertycache.cpp.

References methodName(), and QQmlSignalNames::signalNameToHandlerName().

+ Here is the call graph for this function:

◆ stringData()

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

Definition at line 918 of file qqmlpropertycache.cpp.

References QByteArray::fromRawData(), and mo.

+ Here is the call graph for this function: