diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2017-03-10 09:17:35 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2017-03-10 21:00:41 +0000 |
commit | 77e0dc0485953427320ed0b442ba24eef4f9d73b (patch) | |
tree | d090b435fced96b8568545d0fe81d804f0567744 /tests/auto/quick/qquickwindow/tst_qquickwindow.cpp | |
parent | 182469fc85257fccfa8024e132ad40a50b03c0f5 (diff) |
Fix support for enums and translations in list elements
QQC uses valid constructs like ListElement { dayOfWeek: Locale.Sunday },
where the enums are resolved at type compilation time. Syntactically
Locale.Sunday is a JS expression, but as scripts are not permitted for
list elements, we must retain the values in string form when generating
the binary (cache) qml representation.
This is a forward port of commit
736f4f9c847d1102f6ac77674c831f0555ff445e from the qml compiler, and also
matches QTRD-3226.
Change-Id: I3e615f224d4ab222a50f3271735cb8f7a24f5f11
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickwindow/tst_qquickwindow.cpp')
0 files changed, 0 insertions, 0 deletions