diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-10-25 15:03:01 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-31 16:01:03 +0100 |
commit | b566c9121c066669a88f01143034078ae0cccc90 (patch) | |
tree | c8d080fba288cb0efdd025f99195e3c5b23316db /src/qml/jsruntime/qv4dateobject.cpp | |
parent | 71338b4b2f01268759f7ac6b3eff5abb17420a7c (diff) |
Propagate bool/int/double/string types from QML into the IR
... by mapping the property type to the IR type if possible. In an expression
like parent.width * 0.5 this avoids a to-double conversion for parent.width but
instead we can rely on the result of the property read for the width property
to always be a double.
Unfortunately integer propertyes are currently not propagated, because upon
assignment from a double we would do the ECMAScript compliant truncation while
QML actually expects a round to happen. This needs to be solved separately.
Change-Id: I9c8f58416201d406e6e11d157cae12a686b774e5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject.cpp')
0 files changed, 0 insertions, 0 deletions