Don't provide typehint in QQmlExpression::evaluate()
authorChris Adams <christopher.adams@nokia.com>
Thu, 5 Jul 2012 01:53:18 +0000 (11:53 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jul 2012 00:59:49 +0000 (02:59 +0200)
commit03192f749c14ffdde24d3e1585fadf98f9750938
treedb285bd45521e1e0799d9c3a4536ea0bdf2e8f31
parent7ee8156116581e08466ebc23b31e2b76c127e742
Don't provide typehint in QQmlExpression::evaluate()

Previously, the result returned by QQmlExpression::evaluate() was
converted from the actual JavaScript result with a default typehint
of QList<QObject*>.  This commit removes that typehint so that the
engine's conversion code will choose the most appropriate return type
for the result JavaScript value, instead.

Task-number: QTBUG-17082
Change-Id: I368a018b235e9e001b1b92db3699de377748b74f
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmlexpression.cpp
tests/auto/qml/debugger/qqmlenginedebugservice/tst_qqmlenginedebugservice.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp