Refactor singleton type registration code
authorChris Adams <christopher.adams@nokia.com>
Tue, 14 Aug 2012 01:44:49 +0000 (11:44 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Aug 2012 02:32:48 +0000 (04:32 +0200)
commit70a2c0491d66aa05f9e9e67f8a845f4df84da857
tree08d7828cfb6950926e1176ee420d5e15dedd9817
parent3912bbaceab166eb116447311eb16453e4f26edf
Refactor singleton type registration code

Previously each singleton type was registered as an implicit separate
import.  This commit changes the code so that these types are treated
just like any other type in the registration sense.

It also ensures that singleton types are instantiated per-engine.

Change-Id: I5c81c4ca5bf65210f7125d74a62a282a21838068
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
33 files changed:
src/qml/qml/qqml.h
src/qml/qml/qqmlcompiler.cpp
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlengine_p.h
src/qml/qml/qqmlimport.cpp
src/qml/qml/qqmlimport_p.h
src/qml/qml/qqmlmetatype.cpp
src/qml/qml/qqmlmetatype_p.h
src/qml/qml/qqmlprivate.h
src/qml/qml/qqmltypeloader.cpp
src/qml/qml/qqmltypenamecache.cpp
src/qml/qml/qqmltypenamecache_p.h
src/qml/qml/v4/qv4bindings.cpp
src/qml/qml/v4/qv4compiler.cpp
src/qml/qml/v4/qv4instruction.cpp
src/qml/qml/v4/qv4instruction_p.h
src/qml/qml/v4/qv4ir.cpp
src/qml/qml/v4/qv4ir_p.h
src/qml/qml/v4/qv4irbuilder.cpp
src/qml/qml/v8/qv8typewrapper.cpp
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonType.qml
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonTypeCaching.qml
tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonType.qml
tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonTypeCaching.qml
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeMinorVersionFail.qml
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeMultiple.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml
tests/auto/qml/qqmlecmascript/testtypes.cpp
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
tests/auto/qml/v4/tst_v4.cpp
tools/qmlplugindump/main.cpp