Qt 4.8
|
#include <qdeclarativemetatype_p.h>
Public Types | |
typedef QVariant(* | StringConverter) (const QString &) |
enum | TypeCategory { Unknown, Object, List } |
Static Public Functions | |
static QDeclarativeAttachedPropertiesFunc | attachedPropertiesFuncById (int) |
static int | attachedPropertiesFuncId (const QMetaObject *) |
static bool | canCopy (int type) |
static bool | copy (int type, void *data, const void *copy=0) |
Copies copy into data, assuming they both are of type type. More... | |
static StringConverter | customStringConverter (int) |
Return the custom string converter for type, previously installed through registerCustomStringConverter() More... | |
static QMetaMethod | defaultMethod (const QMetaObject *) |
static QMetaMethod | defaultMethod (QObject *) |
static QMetaProperty | defaultProperty (const QMetaObject *) |
static QMetaProperty | defaultProperty (QObject *) |
static const char * | interfaceIId (int) |
static bool | isInterface (int) |
static bool | isList (int) |
static bool | isModule (const QByteArray &module, int versionMajor, int versionMinor) |
static bool | isQObject (int) |
static int | listType (int) |
static QList< QDeclarativePrivate::AutoParentFunction > | parentFunctions () |
static QDeclarativeDirComponents | qmlComponents (const QByteArray &module, int version_major, int version_minor) |
Returns the component(s) that have been registered for the module specified by uri and the version specified by version_major and version_minor. More... | |
static QDeclarativeType * | qmlType (const QByteArray &, int, int) |
Returns the type (if any) of URI-qualified named name in version specified by version_major and version_minor. More... | |
static QDeclarativeType * | qmlType (const QMetaObject *) |
Returns the type (if any) that corresponds to the metaObject. More... | |
static QDeclarativeType * | qmlType (const QMetaObject *metaObject, const QByteArray &module, int version_major, int version_minor) |
Returns the type (if any) that corresponds to the metaObject in version specified by version_major and version_minor in module specified by uri. More... | |
static QDeclarativeType * | qmlType (int) |
Returns the type (if any) that corresponds to the QVariant::Type userType. More... | |
static QList< QByteArray > | qmlTypeNames () |
Returns the list of registered QML type names. More... | |
static QList< QDeclarativeType * > | qmlTypes () |
Returns the list of registered QML types. More... | |
static void | registerCustomStringConverter (int, StringConverter) |
A custom string convertor allows you to specify a function pointer that returns a variant of type. More... | |
static QObject * | toQObject (const QVariant &, bool *ok=0) |
static TypeCategory | typeCategory (int) |
Definition at line 70 of file qdeclarativemetatype_p.h.
Definition at line 105 of file qdeclarativemetatype_p.h.
|
static |
Definition at line 828 of file qdeclarativemetatype.cpp.
Referenced by qmlAttachedPropertiesObjectById().
|
static |
Definition at line 816 of file qdeclarativemetatype.cpp.
Referenced by qmlAttachedPropertiesObject().
|
static |
Definition at line 1112 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeBoundSignalParameters::QDeclarativeBoundSignalParameters().
|
static |
Copies copy into data, assuming they both are of type type.
If copy is zero, a default type is copied. Returns true if the copy was successful and false if not.
Definition at line 1206 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeBoundSignalParameters::metaCall().
|
static |
Return the custom string converter for type, previously installed through registerCustomStringConverter()
Definition at line 961 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativePropertyAnimationPrivate::convertVariant(), QDeclarativeCompiler::testLiteralAssignment(), and QDeclarativePropertyPrivate::write().
|
static |
Definition at line 863 of file qdeclarativemetatype.cpp.
|
static |
Definition at line 880 of file qdeclarativemetatype.cpp.
|
static |
Definition at line 837 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeCompiler::buildObject(), QDeclarativeCompiler::buildProperty(), QDeclarativeCompiler::doesPropertyExist(), and QDeclarativePropertyPrivate::initDefault().
|
static |
Definition at line 854 of file qdeclarativemetatype.cpp.
|
static |
Definition at line 913 of file qdeclarativemetatype.cpp.
|
static |
Definition at line 906 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeCompiler::buildListProperty(), QDeclarativeCompiler::buildPropertyObjectAssignment(), QDeclarativeCompiler::genListProperty(), and QDeclarativeCompiler::genPropertyAssignment().
|
static |
Definition at line 925 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeCompiler::buildBinding(), QDeclarativeEnginePrivate::isList(), QDeclarativeEngineDebugService::propertyData(), and QDeclarativeDomValue::type().
|
static |
Definition at line 744 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeImportsPrivate::add().
|
static |
Definition at line 792 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeEnginePrivate::isQObject(), QDeclarativeEngineDebugService::propertyData(), QDeclarativeBoundSignalParameters::QDeclarativeBoundSignalParameters(), QDeclarativeListAccessor::setList(), and QDeclarativeEngineDebugService::valueContents().
|
static |
Definition at line 805 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeListReferencePrivate::init(), QDeclarativeEnginePrivate::listType(), QDeclarativeListReference::QDeclarativeListReference(), and QDeclarativePropertyPrivate::write().
|
static |
Definition at line 773 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeComponentPrivate::createObject(), and QDeclarativeEnginePrivate::createQmlObject().
|
static |
Returns the component(s) that have been registered for the module specified by uri and the version specified by version_major and version_minor.
Returns an empty list if no such components were registered.
Definition at line 1040 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeImportsPrivate::add().
|
static |
Returns the type (if any) of URI-qualified named name in version specified by version_major and version_minor.
Definition at line 973 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeCompiler::componentTypeRef(), QDeclarativeEnginePrivate::createCache(), QDeclarativeImportedNamespace::find_helper(), QDeclarativeListReferencePrivate::init(), QDeclarativeEnginePrivate::metaObjectForType(), QDeclarativeEngineDebugService::objectData(), QDeclarativeListReference::QDeclarativeListReference(), qmlExecuteDeferred(), QDeclarativePropertyPrivate::rawMetaObjectForType(), QDeclarativeEnginePrivate::rawMetaObjectForType(), QDeclarativeEngineDebugService::resetBinding(), QDeclarativeType::superType(), QDeclarativeCompiler::toQmlType(), QDeclarativePropertyPrivate::write(), and QDeclarativeInfo::~QDeclarativeInfo().
|
static |
Returns the type (if any) that corresponds to the metaObject.
Returns null if no type is registered.
Definition at line 991 of file qdeclarativemetatype.cpp.
|
static |
Returns the type (if any) that corresponds to the metaObject in version specified by version_major and version_minor in module specified by uri.
Returns null if no type is registered.
Definition at line 1004 of file qdeclarativemetatype.cpp.
|
static |
Returns the type (if any) that corresponds to the QVariant::Type userType.
Returns null if no type is registered.
Definition at line 1024 of file qdeclarativemetatype.cpp.
|
static |
Returns the list of registered QML type names.
Definition at line 1062 of file qdeclarativemetatype.cpp.
|
static |
Returns the list of registered QML types.
Definition at line 1073 of file qdeclarativemetatype.cpp.
Referenced by cacheForNamespace().
|
static |
A custom string convertor allows you to specify a function pointer that returns a variant of type.
For example, if you have written your own icon class that you want to support as an object property assignable in QML:
The function pointer must be of the form:
Definition at line 947 of file qdeclarativemetatype.cpp.
Definition at line 780 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativeEnginePrivate::scriptValueFromVariant(), QDeclarativeListAccessor::setList(), QDeclarativeEnginePrivate::toQObject(), QDeclarativeEngineDebugService::valueContents(), and QDeclarativePropertyPrivate::write().
|
static |
Definition at line 889 of file qdeclarativemetatype.cpp.
Referenced by QDeclarativePropertyCache::Data::flagsForProperty(), and QDeclarativeEnginePrivate::typeCategory().