[new compiler] Fix property assignments to resolved enums
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 26 Feb 2014 13:22:12 +0000 (14:22 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 2 Mar 2014 13:49:32 +0000 (14:49 +0100)
commit1826cea72f73ec7f7ab2d834848537a249419974
tree34a2720a2754a89f99e35ebf077d3d5ae5a0c960
parent75989858270298fcd7153cb39af3c4a64c359833
[new compiler] Fix property assignments to resolved enums

Force the type of the property to write to int, if we resolved the enum earlier
at type compile time. This is consistent with the VME and allows for
assignments to enum properties without a string converter. Fixes
tst_qquickgridview in particular.

Change-Id: Ic29f4a6115930bd7fff45f1658c00d0bfc24c7ec
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlobjectcreator.cpp