Qt 4.8
Public Types | Public Functions | Private Functions | Properties | Friends | List of all members
QDeclarativeType Class Reference

#include <qdeclarativemetatype_p.h>

Public Types

typedef void(* CreateFunc) (void *)
 

Public Functions

QDeclarativeAttachedPropertiesFunc attachedPropertiesFunction () const
 
int attachedPropertiesId () const
 
const QMetaObjectattachedPropertiesType () const
 
bool availableInVersion (int vmajor, int vminor) const
 
bool availableInVersion (const QByteArray &module, int vmajor, int vminor) const
 
const QMetaObjectbaseMetaObject () const
 
bool containsRevisionedAttributes () const
 
QObjectcreate () const
 
void create (QObject **, void **, size_t) const
 
CreateFunc createFunction () const
 
int createSize () const
 
QDeclarativeCustomParsercustomParser () const
 
QVariant fromObject (QObject *) const
 
int index () const
 
const char * interfaceIId () const
 
bool isCreatable () const
 
bool isExtendedType () const
 
bool isInterface () const
 
int majorVersion () const
 
const QMetaObjectmetaObject () const
 
int metaObjectRevision () const
 
int minorVersion () const
 
QByteArray module () const
 
QString noCreationReason () const
 
int parserStatusCast () const
 
int propertyValueInterceptorCast () const
 
int propertyValueSourceCast () const
 
int qListTypeId () const
 
QByteArray qmlTypeName () const
 
int typeId () const
 
QByteArray typeName () const
 

Private Functions

 QDeclarativeType (int, const QDeclarativePrivate::RegisterInterface &)
 
 QDeclarativeType (int, const QDeclarativePrivate::RegisterType &)
 
QDeclarativeTypesuperType () const
 
 ~QDeclarativeType ()
 

Properties

QDeclarativeTypePrivated
 

Friends

struct QDeclarativeMetaTypeData
 
class QDeclarativeTypePrivate
 
int registerComponent (const QDeclarativePrivate::RegisterComponent &)
 
int registerInterface (const QDeclarativePrivate::RegisterInterface &)
 
int registerType (const QDeclarativePrivate::RegisterType &)
 

Detailed Description

Definition at line 114 of file qdeclarativemetatype_p.h.

Typedefs

◆ CreateFunc

typedef void(* QDeclarativeType::CreateFunc) (void *)

Definition at line 130 of file qdeclarativemetatype_p.h.

Constructors and Destructors

◆ QDeclarativeType() [1/2]

QDeclarativeType::QDeclarativeType ( int  index,
const QDeclarativePrivate::RegisterInterface interface 
)
private

Definition at line 193 of file qdeclarativemetatype.cpp.

Referenced by registerInterface(), and registerType().

195 {
196  d->m_isInterface = true;
197  d->m_iid = interface.iid;
198  d->m_typeId = interface.typeId;
199  d->m_listId = interface.listId;
200  d->m_newFunc = 0;
201  d->m_index = index;
202  d->m_isSetup = true;
203  d->m_version_maj = 0;
204  d->m_version_min = 0;
205 }
QDeclarativeTypePrivate * d

◆ QDeclarativeType() [2/2]

QDeclarativeType::QDeclarativeType ( int  index,
const QDeclarativePrivate::RegisterType type 
)
private

Definition at line 207 of file qdeclarativemetatype.cpp.

209 {
210  QByteArray name = type.uri;
211  if (type.uri) name += '/';
212  name += type.elementName;
213 
214  d->m_module = type.uri;
215  d->m_name = name;
216  d->m_version_maj = type.versionMajor;
217  d->m_version_min = type.versionMinor;
218  if (type.version >= 1) // revisions added in version 1
219  d->m_revision = type.revision;
220  d->m_typeId = type.typeId;
221  d->m_listId = type.listId;
222  d->m_allocationSize = type.objectSize;
223  d->m_newFunc = type.create;
225  d->m_baseMetaObject = type.metaObject;
230  if (iter == d->m_attachedPropertyIds.end())
232  d->m_attachedPropertiesId = *iter;
233  } else {
235  }
240  d->m_index = index;
241  d->m_customParser = type.customParser;
242 
243  if (type.extensionMetaObject)
245 }
const QMetaObject * m_baseMetaObject
QDeclarativeAttachedPropertiesFunc m_attachedPropertiesFunc
QDeclarativeCustomParser * customParser
const QMetaObject * m_attachedPropertiesType
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QDeclarativeTypePrivate * d
static QHash< const QMetaObject *, int > m_attachedPropertyIds
The QHash class is a template class that provides a hash-table-based dictionary.
Definition: qdatastream.h:66
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753
QDeclarativeCustomParser * m_customParser
const char * name
QObject *(* m_extFunc)(QObject *)
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the hash...
Definition: qhash.h:467
const QMetaObject * m_extMetaObject
const QMetaObject * attachedPropertiesMetaObject
QObject *(* extensionObjectCreate)(QObject *)
QDeclarativeAttachedPropertiesFunc attachedPropertiesFunction
iterator find(const Key &key)
Returns an iterator pointing to the item with the key in the hash.
Definition: qhash.h:865

◆ ~QDeclarativeType()

QDeclarativeType::~QDeclarativeType ( )
private

Definition at line 247 of file qdeclarativemetatype.cpp.

248 {
249  delete d->m_customParser;
250  delete d;
251 }
QDeclarativeTypePrivate * d
QDeclarativeCustomParser * m_customParser

Functions

◆ attachedPropertiesFunction()

QDeclarativeAttachedPropertiesFunc QDeclarativeType::attachedPropertiesFunction ( ) const

◆ attachedPropertiesId()

int QDeclarativeType::attachedPropertiesId ( ) const

◆ attachedPropertiesType()

const QMetaObject * QDeclarativeType::attachedPropertiesType ( ) const

◆ availableInVersion() [1/2]

bool QDeclarativeType::availableInVersion ( int  vmajor,
int  vminor 
) const

Definition at line 268 of file qdeclarativemetatype.cpp.

Referenced by cacheForNamespace(), and QDeclarativeMetaType::qmlType().

269 {
270  return vmajor > d->m_version_maj || (vmajor == d->m_version_maj && vminor >= d->m_version_min);
271 }
QDeclarativeTypePrivate * d

◆ availableInVersion() [2/2]

bool QDeclarativeType::availableInVersion ( const QByteArray module,
int  vmajor,
int  vminor 
) const

Definition at line 273 of file qdeclarativemetatype.cpp.

274 {
275  return module == d->m_module && (vmajor > d->m_version_maj || (vmajor == d->m_version_maj && vminor >= d->m_version_min));
276 }
QDeclarativeTypePrivate * d

◆ baseMetaObject()

const QMetaObject * QDeclarativeType::baseMetaObject ( ) const

◆ containsRevisionedAttributes()

bool QDeclarativeType::containsRevisionedAttributes ( ) const

Definition at line 532 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeEnginePrivate::cache(), and QDeclarativeCompiler::compile().

533 {
534  d->init();
535 
537 }
QDeclarativeTypePrivate * d

◆ create() [1/2]

QObject * QDeclarativeType::create ( ) const

Definition at line 442 of file qdeclarativemetatype.cpp.

443 {
444  d->init();
445 
446  QObject *rv = (QObject *)operator new(d->m_allocationSize);
447  d->m_newFunc(rv);
448 
449  if (rv && !d->m_metaObjects.isEmpty())
451 
452  return rv;
453 }
QDeclarativeTypePrivate * d
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
QList< QDeclarativeProxyMetaObject::ProxyData > m_metaObjects

◆ create() [2/2]

void QDeclarativeType::create ( QObject **  out,
void **  memory,
size_t  additionalMemory 
) const

Definition at line 455 of file qdeclarativemetatype.cpp.

456 {
457  d->init();
458 
459  QObject *rv = (QObject *)operator new(d->m_allocationSize + additionalMemory);
460  d->m_newFunc(rv);
461 
462  if (rv && !d->m_metaObjects.isEmpty())
464 
465  *out = rv;
466  *memory = ((char *)rv) + d->m_allocationSize;
467 }
QDeclarativeTypePrivate * d
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
QList< QDeclarativeProxyMetaObject::ProxyData > m_metaObjects

◆ createFunction()

QDeclarativeType::CreateFunc QDeclarativeType::createFunction ( ) const

Definition at line 474 of file qdeclarativemetatype.cpp.

475 {
476  return d->m_newFunc;
477 }
QDeclarativeTypePrivate * d

◆ createSize()

int QDeclarativeType::createSize ( ) const

Definition at line 484 of file qdeclarativemetatype.cpp.

485 {
486  return d->m_allocationSize;
487 }
QDeclarativeTypePrivate * d

◆ customParser()

QDeclarativeCustomParser * QDeclarativeType::customParser ( ) const

Definition at line 469 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeVME::run().

470 {
471  return d->m_customParser;
472 }
QDeclarativeTypePrivate * d
QDeclarativeCustomParser * m_customParser

◆ fromObject()

QVariant QDeclarativeType::fromObject ( QObject ) const

◆ index()

int QDeclarativeType::index ( ) const

◆ interfaceIId()

const char * QDeclarativeType::interfaceIId ( ) const

Definition at line 579 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeMetaType::interfaceIId().

580 {
581  return d->m_iid;
582 }
QDeclarativeTypePrivate * d

◆ isCreatable()

bool QDeclarativeType::isCreatable ( ) const

Definition at line 489 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeCompiler::compile().

490 {
491  return d->m_newFunc != 0;
492 }
QDeclarativeTypePrivate * d

◆ isExtendedType()

bool QDeclarativeType::isExtendedType ( ) const

Definition at line 494 of file qdeclarativemetatype.cpp.

495 {
496  d->init();
497 
498  return !d->m_metaObjects.isEmpty();
499 }
QDeclarativeTypePrivate * d
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
QList< QDeclarativeProxyMetaObject::ProxyData > m_metaObjects

◆ isInterface()

bool QDeclarativeType::isInterface ( ) const

Definition at line 501 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeMetaType::interfaceIId().

502 {
503  return d->m_isInterface;
504 }
QDeclarativeTypePrivate * d

◆ majorVersion()

int QDeclarativeType::majorVersion ( ) const

Definition at line 258 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeEnginePrivate::createCache().

259 {
260  return d->m_version_maj;
261 }
QDeclarativeTypePrivate * d

◆ metaObject()

const QMetaObject * QDeclarativeType::metaObject ( ) const

Definition at line 516 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeEnginePrivate::cache(), QDeclarativeEnginePrivate::createCache(), QDeclarativeMetaType::defaultMethod(), QDeclarativeMetaType::defaultProperty(), QDeclarativeCompiler::evaluateEnum(), QDeclarativeEnginePrivate::metaObjectForType(), QDeclarativeMetaType::qmlType(), QDeclarativeCompiler::resolveType(), and QDeclarativeCompiler::testQualifiedEnumAssignment().

517 {
518  d->init();
519 
520  if (d->m_metaObjects.isEmpty())
521  return d->m_baseMetaObject;
522  else
523  return d->m_metaObjects.first().metaObject;
524 
525 }
const QMetaObject * m_baseMetaObject
QDeclarativeTypePrivate * d
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
Definition: qlist.h:152
T & first()
Returns a reference to the first item in the list.
Definition: qlist.h:282
QList< QDeclarativeProxyMetaObject::ProxyData > m_metaObjects

◆ metaObjectRevision()

int QDeclarativeType::metaObjectRevision ( ) const

Definition at line 539 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeEnginePrivate::createCache().

540 {
541  return d->m_revision;
542 }
QDeclarativeTypePrivate * d

◆ minorVersion()

int QDeclarativeType::minorVersion ( ) const

Definition at line 263 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeEnginePrivate::createCache().

264 {
265  return d->m_version_min;
266 }
QDeclarativeTypePrivate * d

◆ module()

QByteArray QDeclarativeType::module ( ) const

◆ noCreationReason()

QString QDeclarativeType::noCreationReason ( ) const

Definition at line 479 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeCompiler::compile().

480 {
481  return d->m_noCreationReason;
482 }
QDeclarativeTypePrivate * d

◆ parserStatusCast()

int QDeclarativeType::parserStatusCast ( ) const

Definition at line 564 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeCompiler::buildObject().

565 {
566  return d->m_parserStatusCast;
567 }
QDeclarativeTypePrivate * d

◆ propertyValueInterceptorCast()

int QDeclarativeType::propertyValueInterceptorCast ( ) const

Definition at line 574 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeCompiler::genPropertyAssignment().

575 {
577 }
QDeclarativeTypePrivate * d

◆ propertyValueSourceCast()

int QDeclarativeType::propertyValueSourceCast ( ) const

Definition at line 569 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeCompiler::genPropertyAssignment().

570 {
572 }
QDeclarativeTypePrivate * d

◆ qListTypeId()

int QDeclarativeType::qListTypeId ( ) const

Definition at line 511 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeMetaType::listType(), registerInterface(), and registerType().

512 {
513  return d->m_listId;
514 }
QDeclarativeTypePrivate * d

◆ qmlTypeName()

QByteArray QDeclarativeType::qmlTypeName ( ) const

◆ superType()

QDeclarativeType * QDeclarativeType::superType ( ) const
private

Definition at line 279 of file qdeclarativemetatype.cpp.

280 {
281  if (!d->m_haveSuperType) {
282  const QMetaObject *mo = d->m_baseMetaObject->superClass();
283  while (mo && !d->m_superType) {
285  mo = mo->superClass();
286  }
287  d->m_haveSuperType = true;
288  }
289 
290  return d->m_superType;
291 }
The QMetaObject class contains meta-information about Qt objects.
Definition: qobjectdefs.h:304
const QMetaObject * m_baseMetaObject
QDeclarativeTypePrivate * d
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 * superClass() const
Returns the meta-object of the superclass, or 0 if there is no such object.
Definition: qobjectdefs.h:494

◆ typeId()

int QDeclarativeType::typeId ( ) const

◆ typeName()

QByteArray QDeclarativeType::typeName ( ) const

Definition at line 429 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativeCompiler::buildDynamicMeta().

430 {
431  if (d->m_baseMetaObject)
432  return d->m_baseMetaObject->className();
433  else
434  return QByteArray();
435 }
const QMetaObject * m_baseMetaObject
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QDeclarativeTypePrivate * d
const char * className() const
Returns the class name.
Definition: qobjectdefs.h:491

Friends and Related Functions

◆ QDeclarativeMetaTypeData

friend struct QDeclarativeMetaTypeData
friend

Definition at line 164 of file qdeclarativemetatype_p.h.

◆ QDeclarativeTypePrivate

Definition at line 163 of file qdeclarativemetatype_p.h.

◆ registerComponent

int registerComponent ( const QDeclarativePrivate::RegisterComponent data)
friend

Definition at line 679 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativePrivate::qmlregister().

680 {
681  if (data.typeName) {
682  for (int ii = 0; data.typeName[ii]; ++ii) {
683  if (!isalnum(data.typeName[ii])) {
684  qWarning("qmlRegisterType(): Invalid QML type name \"%s\"", data.typeName);
685  return 0;
686  }
687  }
688  } else {
689  qWarning("qmlRegisterType(): No QML type name for \"%s\"", data.url.toString().toLatin1().constData());
690  return 0;
691  }
692 
693  QWriteLocker lock(registeredComponentDataLock());
694  QString path;
695  // Relative paths are relative to application working directory
696  if (data.url.isRelative() || data.url.scheme() == QLatin1String("file")) // Workaround QTBUG-11929
697  path = QUrl::fromLocalFile(QDir::currentPath()+QLatin1String("/")).resolved(data.url).toString();
698  else
699  path = data.url.toString();
700  QDeclarativeRegisteredComponentData *d = registeredComponentData();
703  path,
704  data.majorVersion,
705  data.minorVersion
706  );
707 
708  QDeclarativeDirComponents* comps = d->registeredComponents.value(QByteArray(data.uri), 0);
709  if (!comps)
710  d->registeredComponents.insert(QByteArray(data.uri), comps = new QDeclarativeDirComponents);
711 
712  // Types added later should take precedence, like registerType
713  comps->prepend(comp);
714 
715  return 1;
716 }
QString toString(FormattingOptions options=None) const
Returns the human-displayable string representation of the URL.
Definition: qurl.cpp:5896
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
QDeclarativeTypePrivate * d
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
static QString currentPath()
Returns the absolute path of the application&#39;s current directory.
Definition: qdir.cpp:1875
bool isRelative() const
Returns true if the URL is relative; otherwise returns false.
Definition: qurl.cpp:5880
QMap< QByteArray, QDeclarativeDirComponents * > registeredComponents
void prepend(const T &t)
Inserts value at the beginning of the list.
Definition: qlist.h:541
static QString fromUtf8(const char *, int size=-1)
Returns a QString initialized with the first size bytes of the UTF-8 string str.
Definition: qstring.cpp:4302
Q_CORE_EXPORT void qWarning(const char *,...)
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
Definition: qstring.cpp:3993
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
QString scheme() const
Returns the scheme of the URL.
Definition: qurl.cpp:4550
static QReadWriteLock lock
Definition: proxyconf.cpp:399
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
Definition: qurl.cpp:6374

◆ registerInterface

int registerInterface ( const QDeclarativePrivate::RegisterInterface interface)
friend

Definition at line 599 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativePrivate::qmlregister().

600 {
601  if (interface.version > 0)
602  qFatal("qmlRegisterType(): Cannot mix incompatible QML versions.");
603 
604  QWriteLocker lock(metaTypeDataLock());
605  QDeclarativeMetaTypeData *data = metaTypeData();
606 
607  int index = data->types.count();
608 
609  QDeclarativeType *type = new QDeclarativeType(index, interface);
610 
611  data->types.append(type);
612  data->idToType.insert(type->typeId(), type);
613  data->idToType.insert(type->qListTypeId(), type);
614  // XXX No insertMulti, so no multi-version interfaces?
615  if (!type->qmlTypeName().isEmpty())
616  data->nameToType.insert(type->qmlTypeName(), type);
617 
618  if (data->interfaces.size() <= interface.typeId)
619  data->interfaces.resize(interface.typeId + 16);
620  if (data->lists.size() <= interface.listId)
621  data->lists.resize(interface.listId + 16);
622  data->interfaces.setBit(interface.typeId, true);
623  data->lists.setBit(interface.listId, true);
624 
625  return index;
626 }
int type
Definition: qmetatype.cpp:239
void setBit(int i)
Sets the bit at index position i to 1.
Definition: qbitarray.h:128
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QDeclarativeType(int, const QDeclarativePrivate::RegisterInterface &)
QList< QDeclarativeType * > types
void resize(int size)
Resizes the bit array to size bits.
Definition: qbitarray.cpp:214
static const char * data(const QByteArray &arr)
QByteArray qmlTypeName() const
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
Q_CORE_EXPORT void qFatal(const char *,...)
static QReadWriteLock lock
Definition: proxyconf.cpp:399
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
Definition: qbytearray.h:421
int size() const
Returns the number of bits stored in the bit array.
Definition: qbitarray.h:73

◆ registerType

int registerType ( const QDeclarativePrivate::RegisterType type)
friend

Definition at line 628 of file qdeclarativemetatype.cpp.

Referenced by QDeclarativePrivate::qmlregister().

629 {
630  if (type.elementName) {
631  for (int ii = 0; type.elementName[ii]; ++ii) {
632  if (!isalnum(type.elementName[ii])) {
633  qWarning("qmlRegisterType(): Invalid QML element name \"%s\"", type.elementName);
634  return -1;
635  }
636  }
637  }
638 
639  QWriteLocker lock(metaTypeDataLock());
640  QDeclarativeMetaTypeData *data = metaTypeData();
641  int index = data->types.count();
642 
643  QDeclarativeType *dtype = new QDeclarativeType(index, type);
644 
645  data->types.append(dtype);
646  data->idToType.insert(dtype->typeId(), dtype);
647  if (dtype->qListTypeId()) data->idToType.insert(dtype->qListTypeId(), dtype);
648 
649  if (!dtype->qmlTypeName().isEmpty())
650  data->nameToType.insertMulti(dtype->qmlTypeName(), dtype);
651 
652  data->metaObjectToType.insertMulti(dtype->baseMetaObject(), dtype);
653 
654  if (data->objects.size() <= type.typeId)
655  data->objects.resize(type.typeId + 16);
656  if (data->lists.size() <= type.listId)
657  data->lists.resize(type.listId + 16);
658  data->objects.setBit(type.typeId, true);
659  if (type.listId) data->lists.setBit(type.listId, true);
660 
661  if (type.uri) {
662  QByteArray mod(type.uri);
664  if (it == data->modules.end()) {
665  // New module
667  } else if ((*it).vmajor_max < type.versionMajor || ((*it).vmajor_max == type.versionMajor && (*it).vminor_max < type.versionMinor)) {
668  // Newer module
669  data->modules.insert(mod, QDeclarativeMetaTypeData::ModuleInfo((*it).vmajor_min, (*it).vminor_min, type.versionMajor, type.versionMinor));
670  } else if ((*it).vmajor_min > type.versionMajor || ((*it).vmajor_min == type.versionMajor && (*it).vminor_min > type.versionMinor)) {
671  // Older module
672  data->modules.insert(mod, QDeclarativeMetaTypeData::ModuleInfo(type.versionMajor, type.versionMinor, (*it).vmajor_min, (*it).vminor_min));
673  }
674  }
675 
676  return index;
677 }
void setBit(int i)
Sets the bit at index position i to 1.
Definition: qbitarray.h:128
#define it(className, varName)
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
const QMetaObject * baseMetaObject() const
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:753
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QDeclarativeType(int, const QDeclarativePrivate::RegisterInterface &)
QList< QDeclarativeType * > types
void resize(int size)
Resizes the bit array to size bits.
Definition: qbitarray.cpp:214
Q_CORE_EXPORT void qWarning(const char *,...)
static const char * data(const QByteArray &arr)
QByteArray qmlTypeName() const
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the hash...
Definition: qhash.h:467
static QReadWriteLock lock
Definition: proxyconf.cpp:399
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
Definition: qbytearray.h:421
iterator find(const Key &key)
Returns an iterator pointing to the item with the key in the hash.
Definition: qhash.h:865
iterator insertMulti(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
Definition: qhash.h:772
int size() const
Returns the number of bits stored in the bit array.
Definition: qbitarray.h:73
iterator Iterator
Qt-style synonym for QHash::iterator.
Definition: qhash.h:473

Properties

◆ d

QDeclarativeTypePrivate* QDeclarativeType::d
private

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