Support JS Date object in ListModel with static roles.
authorGlenn Watson <glenn.watson@nokia.com>
Tue, 26 Jun 2012 04:52:27 +0000 (14:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 21:28:55 +0000 (23:28 +0200)
commitfb5c74a07dac7deedb9ab3b8b4390941e5dd0762
tree191f686acfa82176cda48207909b9643e11a36a7
parentfe73fabad96f443247c6334b2c1b6ef59401c2c8
Support JS Date object in ListModel with static roles.

ListModel uses static roles by default for performance reasons. Add
JS Date object to list of supported types in this mode, via implicit
conversion to QDateTime.

Task-number: QTBUG-24456
Change-Id: Ifaa1a8d16290e87b61239ed351a949d66a02990c
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qquicklistmodel.cpp
src/qml/qml/qquicklistmodel_p_p.h
tests/auto/qml/qquicklistmodel/tst_qquicklistmodel.cpp