Add type name to singleton (module api) implementations.
authorGlenn Watson <glenn.watson@nokia.com>
Tue, 24 Jul 2012 01:41:50 +0000 (11:41 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Aug 2012 05:55:19 +0000 (07:55 +0200)
commit6ebf215fdaf2d757ab90ae4d46c4b938e978e2dc
tree515da352f1cc4d5567b6d93f0b19952b2e27d705
parent92562eacbc3c614a83a734f1108ed7df02415eae
Add type name to singleton (module api) implementations.

This change renames the previous module api implementation
to singleton types.

When a singleton type is registered, a type name must be provided
that is used when accessing the API from QML. This makes the
implementation more consistent with the rest of QML.

Task-number: QTBUG-26549
Change-Id: Iab0bb1ccf516bd3ae20aee562a64d22976e0aecd
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
86 files changed:
src/imports/localstorage/plugin.cpp
src/qml/doc/src/cppintegration/definetypes.qdoc
src/qml/doc/src/cppintegration/topic.qdoc
src/qml/doc/src/javascript/imports.qdoc
src/qml/doc/src/qmlfunctions.qdoc
src/qml/doc/src/qtqml.qdoc
src/qml/doc/src/syntax/basics.qdoc
src/qml/doc/src/typesystem/objecttypes.qdoc
src/qml/doc/src/whatsnew.qdoc
src/qml/qml/qqml.h
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlengine_p.h
src/qml/qml/qqmlimport.cpp
src/qml/qml/qqmlmetatype.cpp
src/qml/qml/qqmlmetatype_p.h
src/qml/qml/qqmlprivate.h
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/qv4irbuilder.cpp
src/qml/qml/v8/qv8typewrapper.cpp
src/quick/doc/src/appdevguide/performance.qdoc
src/quick/doc/src/appdevguide/porting.qdoc
src/quick/doc/src/qmltypereference.qdoc
src/quick/doc/src/qtquick.qdoc
tests/auto/qml/qqmlecmascript/data/DeleteRootObjectInCreationComponentBase.qml
tests/auto/qml/qqmlecmascript/data/HRMDPComponent.qml
tests/auto/qml/qqmlecmascript/data/OnDestructionComponent.qml
tests/auto/qml/qqmlecmascript/data/QQmlDataDestroyedComponent2Base.qml
tests/auto/qml/qqmlecmascript/data/SignalEmittedComponent.qml
tests/auto/qml/qqmlecmascript/data/fallbackBindings.3.qml
tests/auto/qml/qqmlecmascript/data/fallbackBindings.4.qml
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.dynprop.2.qml
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.dynprop.3.qml
tests/auto/qml/qqmlecmascript/data/handleReferenceManagement.dynprop.qml
tests/auto/qml/qqmlecmascript/data/jsimport/importModuleApi.js [deleted file]
tests/auto/qml/qqmlecmascript/data/jsimport/importSingletonType.js [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/jsimport/testImportSingletonType.qml [moved from tests/auto/qml/qqmlecmascript/data/jsimport/testImportModuleApi.qml with 76% similarity]
tests/auto/qml/qqmlecmascript/data/moduleapi/qobjectModuleApi.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/moduleapi/qobjectModuleApiCaching.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/moduleapi/qobjectModuleApiEnums.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/moduleapi/qobjectModuleApiWriting.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/moduleapi/scriptModuleApi.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/moduleapi/scriptModuleApiCaching.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/moduleapi/scriptModuleApiWriting.qml [deleted file]
tests/auto/qml/qqmlecmascript/data/propertyVarOwnership.5.qml
tests/auto/qml/qqmlecmascript/data/qmlHasOwnProperty.qml
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonType.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonTypeCaching.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonTypeEnums.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonTypeNoQualifier.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/qobjectSingletonTypeWriting.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonType.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonTypeCaching.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonTypeNoQualifier.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/scriptSingletonTypeWriting.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeImportOrder.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeMajorVersionFail.qml [moved from tests/auto/qml/qqmlecmascript/data/moduleapi/moduleApiMajorVersionFail.qml with 71% similarity]
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeMinorVersionFail.qml [moved from tests/auto/qml/qqmlecmascript/data/moduleapi/moduleApiMinorVersionFail.qml with 71% similarity]
tests/auto/qml/qqmlecmascript/data/singletontype/singletonTypeResolution.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/testtypes.cpp
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qqmlsqldatabase/data/changeversion.js
tests/auto/qml/qqmlsqldatabase/data/creation-a.js
tests/auto/qml/qqmlsqldatabase/data/creation.js
tests/auto/qml/qqmlsqldatabase/data/error-a.js
tests/auto/qml/qqmlsqldatabase/data/error-b.js
tests/auto/qml/qqmlsqldatabase/data/error-creation.js
tests/auto/qml/qqmlsqldatabase/data/error-notransaction.js
tests/auto/qml/qqmlsqldatabase/data/error-outsidetransaction.js
tests/auto/qml/qqmlsqldatabase/data/iteration-forwardonly.js
tests/auto/qml/qqmlsqldatabase/data/iteration.js
tests/auto/qml/qqmlsqldatabase/data/readonly-error.js
tests/auto/qml/qqmlsqldatabase/data/readonly.js
tests/auto/qml/qqmlsqldatabase/data/reopen1.js
tests/auto/qml/qqmlsqldatabase/data/reopen2.js
tests/auto/qml/qqmlsqldatabase/data/selection-bindnames.js
tests/auto/qml/qqmlsqldatabase/data/selection.js
tests/auto/qml/qquickconnection/data/singletontype-target.qml [moved from tests/auto/qml/qquickconnection/data/moduleapi-target.qml with 75% similarity]
tests/auto/qml/qquickconnection/tst_qquickconnection.cpp
tests/auto/qml/v4/data/singletonType.qml [moved from tests/auto/qml/v4/data/moduleApi.qml with 67% similarity]
tests/auto/qml/v4/tst_v4.cpp
tests/benchmarks/qml/holistic/testtypes.cpp
tools/qmlplugindump/main.cpp