Allow color to be explicitly compared to a string
authorMatthew Vogt <matthew.vogt@nokia.com>
Thu, 5 Jul 2012 06:09:27 +0000 (16:09 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 15:37:55 +0000 (17:37 +0200)
commitb5eb3d69b40c4b750a1bbece7be2acbe7cf918e3
treef4009d3023d0fa9a511e94e8cc145c222c3b7552
parentaeb2b05e3cad95164779e8778351b492b0e2fffa
Allow color to be explicitly compared to a string

Add the Qt.colorEqual() function which compares any combination of
two supplied color and string arguments, by converting the string
arguments to colors as necessary.

Task-number: QTBUG-18754
Change-Id: I75baef9a2edd30a5f8b9cb5e151e4adba6f6a371
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/doc/src/typesystem/basictypes.qdoc
src/qml/qml/v8/qqmlbuiltinfunctions.cpp
src/qml/qml/v8/qqmlbuiltinfunctions_p.h
src/qml/qml/v8/qv8engine.cpp
tests/auto/qml/qqmlqt/data/colorEqual.qml [new file with mode: 0644]
tests/auto/qml/qqmlqt/tst_qqmlqt.cpp