Add support for a vector4d type in QML
authorChris Adams <christopher.adams@nokia.com>
Thu, 14 Jul 2011 05:40:30 +0000 (15:40 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 18 Aug 2011 07:25:04 +0000 (09:25 +0200)
commiteaf52673ef38b4d7a14f9fb9f258d8f1c6097401
treea607ea443865da0668029725283009cf17d2ffe1
parent36767e3fe1f0038441ae06ef5b5e1cb19a3738fa
Add support for a vector4d type in QML

QVector4D is a value-type which is supported but was not able to be
constructed using a Qt object function.  This commit allows properties
of vector4d type to be constructed, and adds a function to the global
Qt object and adds unit tests to ensure that it behaves correctly.

Task-number: QTBUG-18559
Change-Id: I96509a4f496b644d20fdb1d977d0afe430d89e13
Reviewed-on: http://codereview.qt.nokia.com/1626
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
15 files changed:
src/declarative/qml/qdeclarativecompiler.cpp
src/declarative/qml/qdeclarativeinstruction.cpp
src/declarative/qml/qdeclarativeinstruction_p.h
src/declarative/qml/qdeclarativestringconverters.cpp
src/declarative/qml/qdeclarativestringconverters_p.h
src/declarative/qml/qdeclarativevme.cpp
src/declarative/qml/v8/qv8engine.cpp
src/declarative/qml/v8/qv8engine_p.h
tests/auto/declarative/qdeclarativeinstruction/tst_qdeclarativeinstruction.cpp
tests/auto/declarative/qdeclarativelanguage/data/assignBasicTypes.qml
tests/auto/declarative/qdeclarativelanguage/data/assignLiteralToVariant.qml
tests/auto/declarative/qdeclarativelanguage/testtypes.h
tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
tests/auto/declarative/qdeclarativeqt/data/vector4.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp