Qt 4.8
Classes | Functions
qdeclarativeproperty.cpp File Reference
#include "qdeclarativeproperty.h"
#include "private/qdeclarativeproperty_p.h"
#include "qdeclarative.h"
#include "private/qdeclarativebinding_p.h"
#include "qdeclarativecontext.h"
#include "private/qdeclarativecontext_p.h"
#include "private/qdeclarativeboundsignal_p.h"
#include "qdeclarativeengine.h"
#include "private/qdeclarativeengine_p.h"
#include "private/qdeclarativedata_p.h"
#include "private/qdeclarativestringconverters_p.h"
#include "private/qdeclarativelist_p.h"
#include "private/qdeclarativecompiler_p.h"
#include "private/qdeclarativevmemetaobject_p.h"
#include <QStringList>
#include <QtCore/qdebug.h>
#include <math.h>

Go to the source code of this file.

Classes

struct  SerializedData
 
struct  ValueTypeSerializedData
 

Functions

static void flush_vme_signal (const QObject *object, int index)
 
 Q_GLOBAL_STATIC (QDeclarativeValueTypeFactory, qmlValueTypes)
 
static int QMetaObject_methods (const QMetaObject *metaObject)
 
static int QMetaObject_properties (const QMetaObject *metaObject)
 

Function Documentation

◆ flush_vme_signal()

static void flush_vme_signal ( const QObject object,
int  index 
)
inlinestatic

Definition at line 1607 of file qdeclarativeproperty.cpp.

Referenced by QDeclarativePropertyPrivate::connect().

1608 {
1609  QDeclarativeData *data = static_cast<QDeclarativeData *>(QObjectPrivate::get(const_cast<QObject *>(object))->declarativeData);
1610  if (data && data->propertyCache) {
1612 
1614  const QMetaObject *metaObject = object->metaObject();
1615  int methodOffset = metaObject->methodOffset();
1616 
1617  while (methodOffset > index) {
1618  metaObject = metaObject->d.superdata;
1619  methodOffset -= QMetaObject_methods(metaObject);
1620  }
1621 
1623  static_cast<QDeclarativeVMEMetaObject *>(const_cast<QMetaObject *>(metaObject));
1624 
1625  vme->connectAliasSignal(index);
1626  }
1627  }
1628 }
The QMetaObject class contains meta-information about Qt objects.
Definition: qobjectdefs.h:304
QDeclarativePropertyCache * propertyCache
static QObjectPrivate * get(QObject *o)
Definition: qobject_p.h:177
int methodOffset() const
Returns the method offset for this class; i.e.
static int QMetaObject_methods(const QMetaObject *metaObject)
static const char * data(const QByteArray &arr)
QAbstractDeclarativeData * declarativeData
Definition: qobject_p.h:214
const QMetaObject * superdata
Definition: qobjectdefs.h:469
const char * property
Definition: qwizard.cpp:138
struct QMetaObject::@38 d
quint16 index

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( QDeclarativeValueTypeFactory  ,
qmlValueTypes   
)

◆ QMetaObject_methods()

static int QMetaObject_methods ( const QMetaObject metaObject)
inlinestatic

Definition at line 1579 of file qdeclarativeproperty.cpp.

Referenced by flush_vme_signal().

1580 {
1581  struct Private
1582  {
1583  int revision;
1584  int className;
1585  int classInfoCount, classInfoData;
1586  int methodCount, methodData;
1587  int propertyCount, propertyData;
1588  };
1589 
1590  return reinterpret_cast<const Private *>(metaObject->d.data)->methodCount;
1591 }
const char * className
Definition: qwizard.cpp:137
const uint * data
Definition: qobjectdefs.h:471
struct QMetaObject::@38 d

◆ QMetaObject_properties()

static int QMetaObject_properties ( const QMetaObject metaObject)
inlinestatic

Definition at line 1593 of file qdeclarativeproperty.cpp.

Referenced by QDeclarativePropertyPrivate::metaObjectForProperty().

1594 {
1595  struct Private
1596  {
1597  int revision;
1598  int className;
1599  int classInfoCount, classInfoData;
1600  int methodCount, methodData;
1601  int propertyCount, propertyData;
1602  };
1603 
1604  return reinterpret_cast<const Private *>(metaObject->d.data)->propertyCount;
1605 }
const char * className
Definition: qwizard.cpp:137
const uint * data
Definition: qobjectdefs.h:471
struct QMetaObject::@38 d