Add support for comparing value-type properties
authorChris Adams <christopher.adams@nokia.com>
Tue, 2 Aug 2011 00:04:16 +0000 (10:04 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 2 Aug 2011 06:50:21 +0000 (08:50 +0200)
commit0db6db0263defcd6ff84769b7d927d5a51606f6c
treeec30dca485b9cf576a70d4b232d6525f3d569c90
parent29e71ca376f48bafc2105b656a702f3edd4501a8
Add support for comparing value-type properties

This commit allows value-types to be compared with each other and
with variants.  It also adds a toString() function for each value
type, to allow conversion to (and comparison with) string.

Task-number: QTBUG-14731
Change-Id: I5bde2820917b2fe19b581724977398680617de34
Reviewed-on: http://codereview.qt.nokia.com/1636
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
20 files changed:
src/declarative/qml/qdeclarativevaluetype.cpp
src/declarative/qml/qdeclarativevaluetype_p.h
src/declarative/qml/v8/qv8engine.cpp
src/declarative/qml/v8/qv8engine_p.h
src/declarative/qml/v8/qv8valuetypewrapper.cpp
src/declarative/qml/v8/qv8valuetypewrapper_p.h
tests/auto/declarative/qdeclarativevaluetypes/data/font_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/matrix4x4_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/point_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/pointf_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/quaternion_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/rect_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/rectf_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/size_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/sizef_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/vector2d_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/vector3d_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/data/vector4d_compare.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativevaluetypes/testtypes.h
tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp