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
QQmlDesignerMetaObject Class Reference

#include <qqmldesignermetaobject_p.h>

+ Inheritance diagram for QQmlDesignerMetaObject:
+ Collaboration diagram for QQmlDesignerMetaObject:

Public Member Functions

 ~QQmlDesignerMetaObject ()
 
- Public Member Functions inherited from QQmlVMEMetaObject
 QQmlVMEMetaObject (QV4::ExecutionEngine *engine, QObject *obj, const QQmlPropertyCache::ConstPtr &cache, const QQmlRefPointer< QV4::ExecutableCompilationUnit > &qmlCompilationUnit, int qmlObjectId)
 
 ~QQmlVMEMetaObject () override
 
bool aliasTarget (int index, QObject **target, int *coreIndex, int *valueTypeIndex) const
 
QV4::ReturnedValue vmeMethod (int index) const
 
void setVmeMethod (int index, const QV4::Value &function)
 
QV4::ReturnedValue vmeProperty (int index) const
 
void setVMEProperty (int index, const QV4::Value &v)
 
void connectAliasSignal (int index, bool indexInSignalRange)
 
int propOffset () const
 
int methodOffset () const
 
int signalOffset () const
 
int signalCount () const
 
QV4::MemberDatapropertyAndMethodStorageAsMemberData () const
 
int readPropertyAsInt (int id) const
 
bool readPropertyAsBool (int id) const
 
double readPropertyAsDouble (int id) const
 
QString readPropertyAsString (int id) const
 
QSizeF readPropertyAsSizeF (int id) const
 
QPointF readPropertyAsPointF (int id) const
 
QUrl readPropertyAsUrl (int id) const
 
QDate readPropertyAsDate (int id) const
 
QTime readPropertyAsTime (int id) const
 
QDateTime readPropertyAsDateTime (int id) const
 
QRectF readPropertyAsRectF (int id) const
 
QObjectreadPropertyAsQObject (int id) const
 
void initPropertyAsList (int id) const
 
void writeProperty (int id, int v)
 
void writeProperty (int id, bool v)
 
void writeProperty (int id, double v)
 
void writeProperty (int id, const QString &v)
 
template<typename VariantCompatible >
void writeProperty (int id, const VariantCompatible &v)
 
void writeProperty (int id, QObject *v)
 
void ensureQObjectWrapper ()
 
void mark (QV4::MarkStack *markStack)
 
void connectAlias (int aliasId)
 
QV4::ReturnedValue method (int) const
 
QV4::ReturnedValue readVarProperty (int) const
 
void writeVarProperty (int, const QV4::Value &)
 
QVariant readPropertyAsVariant (int) const
 
void writeProperty (int, const QVariant &)
 
QQmlVMEMetaObjectparentVMEMetaObject () const
 
void activate (QObject *, int, void **)
 
QQmlVMEVariantQObjectPtrgetQObjectGuardForProperty (int) const
 
- Public Member Functions inherited from QQmlInterceptorMetaObject
 QQmlInterceptorMetaObject (QObject *obj, const QQmlPropertyCache::ConstPtr &cache)
 
 ~QQmlInterceptorMetaObject () override
 
void registerInterceptor (QQmlPropertyIndex index, QQmlPropertyValueInterceptor *interceptor)
 
QMetaObjecttoDynamicMetaObject (QObject *o) override
 
QQmlPropertyCache::ConstPtr propertyCache () const
 
bool intercepts (QQmlPropertyIndex propertyIndex) const
 
void invalidate ()
 
- Public Member Functions inherited from QDynamicMetaObjectData
virtual ~QDynamicMetaObjectData ()
 
virtual void objectDestroyed (QObject *)
 

Static Public Member Functions

static void registerNotifyPropertyChangeCallBack (void(*callback)(QObject *, const QQuickDesignerSupport::PropertyName &propertyName))
 
- Static Public Member Functions inherited from QQmlVMEMetaObject
static QQmlVMEMetaObjectget (QObject *o)
 
static QQmlVMEMetaObjectgetForProperty (QObject *o, int coreIndex)
 
static QQmlVMEMetaObjectgetForMethod (QObject *o, int coreIndex)
 
static QQmlVMEMetaObjectgetForSignal (QObject *o, int coreIndex)
 
static void list_append (QQmlListProperty< QObject > *prop, QObject *o)
 
static void list_clear (QQmlListProperty< QObject > *prop)
 
static void list_append_nosignal (QQmlListProperty< QObject > *prop, QObject *o)
 
static void list_clear_nosignal (QQmlListProperty< QObject > *prop)
 
- Static Public Member Functions inherited from QQmlInterceptorMetaObject
static QQmlInterceptorMetaObjectget (QObject *obj)
 

Protected Member Functions

void createNewDynamicProperty (const QString &name)
 
int openMetaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a)
 
int metaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a) override
 
void notifyPropertyChange (int id)
 
void setValue (int id, const QVariant &value)
 
QVariant propertyWriteValue (int, const QVariant &)
 
QObjectmyObject () const
 
QDynamicMetaObjectDatadynamicMetaObjectParent () const
 
const QMetaObjectmetaObjectParent () const
 
int propertyOffset () const
 
int count () const
 
QByteArray name (int) const
 
void copyTypeMetaObject ()
 
- Protected Member Functions inherited from QQmlVMEMetaObject
int metaCall (QObject *o, QMetaObject::Call _c, int _id, void **_a) override
 
- Protected Member Functions inherited from QQmlInterceptorMetaObject
bool intercept (QMetaObject::Call c, int id, void **a)
 

Static Protected Member Functions

static QQmlDesignerMetaObjectgetNodeInstanceMetaObject (QObject *object, QQmlEngine *engine)
 

Friends

class QQuickDesignerSupportProperties
 

Additional Inherited Members

- Public Attributes inherited from QQmlVMEMetaObject
QV4::ExecutionEngineengine
 
QQmlGuardedContextData ctxt
 
QQmlVMEMetaObjectEndpointaliasEndpoints
 
QV4::WeakValue propertyAndMethodStorage
 
QList< QQmlVMEVariantQObjectPtr * > varObjectGuards
 
QQmlRefPointer< QV4::ExecutableCompilationUnitcompilationUnit
 
const QV4::CompiledData::ObjectcompiledObject
 
- Public Attributes inherited from QQmlInterceptorMetaObject
QObjectobject = nullptr
 
QQmlPropertyCache::ConstPtr cache
 
- Protected Types inherited from QQmlInterceptorMetaObject
enum  MetaObjectValidity { MetaObjectValid , MetaObjectInvalid }
 
- Protected Attributes inherited from QQmlInterceptorMetaObject
QBiPointer< QDynamicMetaObjectData, const QMetaObjectparent
 
QTaggedPointer< const QMetaObject, MetaObjectValiditymetaObject
 

Detailed Description

Definition at line 33 of file qqmldesignermetaobject_p.h.

Constructor & Destructor Documentation

◆ ~QQmlDesignerMetaObject()

QQmlDesignerMetaObject::~QQmlDesignerMetaObject ( )

Definition at line 108 of file qqmldesignermetaobject.cpp.

References nodeInstanceMetaObjectList.

Member Function Documentation

◆ copyTypeMetaObject()

void QQmlDesignerMetaObject::copyTypeMetaObject ( )
protected

Definition at line 267 of file qqmldesignermetaobject.cpp.

References QQmlInterceptorMetaObject::metaObject.

Referenced by createNewDynamicProperty().

+ Here is the caller graph for this function:

◆ count()

int QQmlDesignerMetaObject::count ( ) const
protected

Definition at line 257 of file qqmldesignermetaobject.cpp.

Referenced by openMetaCall().

+ Here is the caller graph for this function:

◆ createNewDynamicProperty()

void QQmlDesignerMetaObject::createNewDynamicProperty ( const QString & name)
protected

Definition at line 116 of file qqmldesignermetaobject.cpp.

References copyTypeMetaObject(), QTaggedPointer< T, Tag >::data(), QQmlPropertyCache::invalidate(), QQmlInterceptorMetaObject::metaObject, myObject(), property, Q_ASSERT, and setValue().

+ Here is the call graph for this function:

◆ dynamicMetaObjectParent()

QDynamicMetaObjectData * QQmlDesignerMetaObject::dynamicMetaObjectParent ( ) const
protected

Definition at line 143 of file qqmldesignermetaobject.cpp.

References QBiPointer< T, T2 >::asT1(), and QQmlInterceptorMetaObject::parent.

Referenced by metaCall(), and openMetaCall().

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

◆ getNodeInstanceMetaObject()

QQmlDesignerMetaObject * QQmlDesignerMetaObject::getNodeInstanceMetaObject ( QObject * object,
QQmlEngine * engine )
staticprotected

Definition at line 54 of file qqmldesignermetaobject.cpp.

References QQmlVMEMetaObject::engine, QObjectPrivate::get(), QQmlData::get(), QObjectData::metaObject, mo, nodeInstanceMetaObjectList, and QQmlInterceptorMetaObject::parent.

Referenced by QQuickDesignerSupportProperties::createNewDynamicProperty(), and QQuickDesignerSupportProperties::registerNodeInstanceMetaObject().

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

◆ metaCall()

int QQmlDesignerMetaObject::metaCall ( QObject * o,
QMetaObject::Call _c,
int _id,
void ** _a )
overrideprotectedvirtual

Implements QDynamicMetaObjectData.

Definition at line 192 of file qqmldesignermetaobject.cpp.

References dynamicMetaObjectParent(), QQmlInterceptorMetaObject::metaObject, myObject(), notifyPropertyChange(), o, QQmlInterceptorMetaObject::object, openMetaCall(), QMetaObject::property(), propertyOffset(), Q_ASSERT, qt_is_nan(), QMetaType::QVariant, toDouble(), QVariant::userType(), and QMetaObject::WriteProperty.

+ Here is the call graph for this function:

◆ metaObjectParent()

const QMetaObject * QQmlDesignerMetaObject::metaObjectParent ( ) const
protected

Definition at line 151 of file qqmldesignermetaobject.cpp.

References QBiPointer< T, T2 >::asT1(), QBiPointer< T, T2 >::asT2(), QQmlInterceptorMetaObject::object, QQmlInterceptorMetaObject::parent, and QDynamicMetaObjectData::toDynamicMetaObject().

+ Here is the call graph for this function:

◆ myObject()

QObject * QQmlDesignerMetaObject::myObject ( ) const
inlineprotected

Definition at line 50 of file qqmldesignermetaobject_p.h.

References QQmlInterceptorMetaObject::object.

Referenced by createNewDynamicProperty(), metaCall(), notifyPropertyChange(), openMetaCall(), and setValue().

+ Here is the caller graph for this function:

◆ name()

QByteArray QQmlDesignerMetaObject::name ( int idx) const
protected

Definition at line 262 of file qqmldesignermetaobject.cpp.

◆ notifyPropertyChange()

void QQmlDesignerMetaObject::notifyPropertyChange ( int id)
protected

Definition at line 244 of file qqmldesignermetaobject.cpp.

References QQmlInterceptorMetaObject::metaObject, myObject(), notifyPropertyChangeCallBack, QMetaObject::property(), and propertyOffset().

Referenced by metaCall().

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

◆ openMetaCall()

int QQmlDesignerMetaObject::openMetaCall ( QObject * o,
QMetaObject::Call _c,
int _id,
void ** _a )
protected

Definition at line 164 of file qqmldesignermetaobject.cpp.

References QQmlVMEMetaObject::activate(), count(), dynamicMetaObjectParent(), MetaPropertyData::getData(), MetaPropertyData::getDataRef(), MetaPropertyData::m_data, myObject(), o, propertyOffset(), propertyWriteValue(), QMetaObject::ReadProperty, QQmlVMEMetaObject::signalOffset(), and QMetaObject::WriteProperty.

Referenced by metaCall().

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

◆ propertyOffset()

int QQmlDesignerMetaObject::propertyOffset ( ) const
protected

Definition at line 159 of file qqmldesignermetaobject.cpp.

References QQmlInterceptorMetaObject::cache.

Referenced by metaCall(), notifyPropertyChange(), and openMetaCall().

+ Here is the caller graph for this function:

◆ propertyWriteValue()

QVariant QQmlDesignerMetaObject::propertyWriteValue ( int ,
const QVariant & value )
protected

Definition at line 138 of file qqmldesignermetaobject.cpp.

Referenced by openMetaCall(), and setValue().

+ Here is the caller graph for this function:

◆ registerNotifyPropertyChangeCallBack()

void QQmlDesignerMetaObject::registerNotifyPropertyChangeCallBack ( void(*)(QObject *, const QQuickDesignerSupport::PropertyName &propertyName) callback)
static

Definition at line 272 of file qqmldesignermetaobject.cpp.

References notifyPropertyChangeCallBack.

Referenced by QQuickDesignerSupportMetaInfo::registerNotifyPropertyChangeCallBack().

+ Here is the caller graph for this function:

◆ setValue()

void QQmlDesignerMetaObject::setValue ( int id,
const QVariant & value )
protected

Definition at line 130 of file qqmldesignermetaobject.cpp.

References QMetaObject::activate(), MetaPropertyData::getDataRef(), myObject(), propertyWriteValue(), and QQmlVMEMetaObject::signalOffset().

Referenced by createNewDynamicProperty().

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

Friends And Related Symbol Documentation

◆ QQuickDesignerSupportProperties

friend class QQuickDesignerSupportProperties
friend

Definition at line 76 of file qqmldesignermetaobject_p.h.


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