Add qmlRegisterType for Composite Types
authorAlan Alpert <aalpert@rim.com>
Thu, 24 Jan 2013 20:13:57 +0000 (12:13 -0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 18 Feb 2013 18:46:02 +0000 (19:46 +0100)
commit99ad368cf810723643ae76bba6a1adba3321b18f
treee87c708650931c8863a1affed20befd1578aff35
parentd0491c87a9f0f2dadc9ef0e0a267b8c241c08b41
Add qmlRegisterType for Composite Types

This is equivalent functionality to registering a composite type in a
qmldir file, a type name in a versioned module is associated with a
given file. This function now allows that to be done easily from C++.

Change-Id: I1cf44b92c3ad7fee593f4f84773c35b56253e628
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
src/qml/doc/src/qmlfunctions.qdoc
src/qml/qml/qqml.h
tests/auto/qml/qqmllanguage/data/badCompositeRegistration.1.errors.txt [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/badCompositeRegistration.1.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/badCompositeRegistration.2.errors.txt [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/badCompositeRegistration.2.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/data/registeredCompositeType.qml [new file with mode: 0644]
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp