Add JavaScript "var" property type to QML
authorChris Adams <christopher.adams@nokia.com>
Fri, 30 Sep 2011 01:14:10 +0000 (11:14 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 6 Oct 2011 03:29:00 +0000 (05:29 +0200)
commit752cd2aca42f6625f1cfc364937e0d39828cf954
treedcb8891d7ff0d99d7bcbf948ed6339c4cce6b257
parent6bd1704c42f564980677682e1d47e91129d94e5c
Add JavaScript "var" property type to QML

This commit adds a new syntax which allows "var" type properties
which can have JavaScript objects (as well as other basic types)
assigned to them. Such JavaScript objects cannot be bound to.

Task-number: QMLNG-18
Change-Id: If7f5045f4669e0d5c1b8d0891ed765128d0bc1c6
Reviewed-on: http://codereview.qt-project.org/1466
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
52 files changed:
doc/src/declarative/basictypes.qdoc
doc/src/declarative/whatsnew.qdoc
src/declarative/qml/qdeclarativecompiler.cpp
src/declarative/qml/qdeclarativeinstruction_p.h
src/declarative/qml/qdeclarativeproperty.cpp
src/declarative/qml/qdeclarativeproperty_p.h
src/declarative/qml/qdeclarativepropertycache_p.h
src/declarative/qml/qdeclarativescript.cpp
src/declarative/qml/qdeclarativescript_p.h
src/declarative/qml/qdeclarativevme.cpp
src/declarative/qml/qdeclarativevmemetaobject.cpp
src/declarative/qml/qdeclarativevmemetaobject_p.h
src/declarative/qml/v8/qv8engine.cpp
src/declarative/qml/v8/qv8qobjectwrapper.cpp
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarCircularComponent.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarCircularComponent2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarCircularComponent3.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarCircularComponent4.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarCircularComponent5.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarInheritanceComponent.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/PropertyVarOwnershipComponent.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/handleReferenceManagement.handle.1.qml
tests/auto/declarative/qdeclarativeecmascript/data/handleReferenceManagement.handle.2.qml
tests/auto/declarative/qdeclarativeecmascript/data/handleReferenceManagement.object.1.qml
tests/auto/declarative/qdeclarativeecmascript/data/handleReferenceManagement.object.2.qml
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.1.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.3.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.4.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.5.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.6.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.7.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.8.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.9.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.circular.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.inherit.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVar.reparent.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarCpp.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarImplicitOwnership.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.3.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.3.type.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.4.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.4.type1.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.4.type2.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/data/propertyVarOwnership.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/testtypes.cpp
tests/auto/declarative/qdeclarativeecmascript/testtypes.h
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
tests/auto/declarative/qdeclarativelanguage/data/assignLiteralToVar.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp