Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QDeclarativeListReferencePrivate Class Reference

#include <qdeclarativelist_p.h>

Public Functions

void addref ()
 
 QDeclarativeListReferencePrivate ()
 
void release ()
 

Static Public Functions

static QDeclarativeListReferencePrivateget (QDeclarativeListReference *ref)
 
static QDeclarativeListReference init (const QDeclarativeListProperty< QObject > &, int, QDeclarativeEngine *)
 

Public Variables

const QMetaObjectelementType
 
QDeclarativeGuard< QObjectobject
 
QDeclarativeListProperty< QObjectproperty
 
int propertyType
 
int refCount
 

Detailed Description

Definition at line 61 of file qdeclarativelist_p.h.

Constructors and Destructors

◆ QDeclarativeListReferencePrivate()

QDeclarativeListReferencePrivate::QDeclarativeListReferencePrivate ( )

Definition at line 49 of file qdeclarativelist.cpp.

Referenced by init().

Functions

◆ addref()

void QDeclarativeListReferencePrivate::addref ( )

◆ get()

static QDeclarativeListReferencePrivate* QDeclarativeListReferencePrivate::get ( QDeclarativeListReference ref)
inlinestatic

Definition at line 77 of file qdeclarativelist_p.h.

Referenced by QDeclarativeEnginePrivate::scriptValueFromVariant().

77  {
78  return ref->d;
79  }
QDeclarativeListReferencePrivate * d

◆ init()

QDeclarativeListReference QDeclarativeListReferencePrivate::init ( const QDeclarativeListProperty< QObject > &  prop,
int  propType,
QDeclarativeEngine engine 
)
static

Definition at line 54 of file qdeclarativelist.cpp.

Referenced by QDeclarativePropertyPrivate::readValueProperty(), and QDeclarativeListScriptClass::toVariant().

55 {
57 
58  if (!prop.object) return rv;
59 
61 
62  int listType = p?p->listType(propType):QDeclarativeMetaType::listType(propType);
63  if (listType == -1) return rv;
64 
66  rv.d->object = prop.object;
68  rv.d->property = prop;
69  rv.d->propertyType = propType;
70 
71  return rv;
72 }
The QDeclarativeListReference class allows the manipulation of QDeclarativeListProperty properties...
static QDeclarativeType * qmlType(const QByteArray &, int, int)
Returns the type (if any) of URI-qualified named name in version specified by version_major and versi...
const QMetaObject * baseMetaObject() const
static QDeclarativeEnginePrivate * get(QDeclarativeEngine *e)
QDeclarativeListProperty< QObject > property
QDeclarativeListReferencePrivate * d
QDeclarativeGuard< QObject > object
const QMetaObject * rawMetaObjectForType(int) const

◆ release()

void QDeclarativeListReferencePrivate::release ( )

Definition at line 80 of file qdeclarativelist.cpp.

Referenced by QDeclarativeListReference::operator=(), and QDeclarativeListReference::~QDeclarativeListReference().

81 {
82  Q_ASSERT(refCount > 0);
83  --refCount;
84  if (!refCount)
85  delete this;
86 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823

Properties

◆ elementType

const QMetaObject* QDeclarativeListReferencePrivate::elementType

◆ object

QDeclarativeGuard<QObject> QDeclarativeListReferencePrivate::object

◆ property

QDeclarativeListProperty<QObject> QDeclarativeListReferencePrivate::property

◆ propertyType

int QDeclarativeListReferencePrivate::propertyType

◆ refCount

int QDeclarativeListReferencePrivate::refCount

Definition at line 75 of file qdeclarativelist_p.h.

Referenced by addref(), and release().


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