Repeater & itemviews: fix setModel() JS array handling
authorJ-P Nurmi <jpnurmi@theqtcompany.com>
Wed, 29 Oct 2014 12:59:46 +0000 (13:59 +0100)
committerJ-P Nurmi <jpnurmi@theqtcompany.com>
Wed, 29 Oct 2014 20:50:12 +0000 (21:50 +0100)
commitcf959b4b4ea3d2dfd5243022fea393fadfd95b0d
tree15191c98807e379e57267cfb5bf7a28bd53d4c83
parent4b7dc1cf59da656be1f51a5a7bdac01b1ae8219a
Repeater & itemviews: fix setModel() JS array handling

QVariant comparison in setModel() started failing because
JS arrays are now passed as a QJSValue. Re-assigning the
same array content should not trigger a model change.

This change restores the old behavior it had before, when
JS arrays were passed as QVariantLists.

Change-Id: I1882b3531f2893b116dbd817edeecab1ae812ce8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/quick/items/qquickitemview.cpp
src/quick/items/qquickpathview.cpp
src/quick/items/qquickrepeater.cpp
tests/auto/quick/qquickgridview/tst_qquickgridview.cpp
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp
tests/auto/quick/qquickpathview/tst_qquickpathview.cpp
tests/auto/quick/qquickrepeater/tst_qquickrepeater.cpp