Fix calls to overloaded slots for QObjects not created by QML
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 28 Feb 2014 15:01:53 +0000 (16:01 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 2 Mar 2014 21:29:51 +0000 (22:29 +0100)
commitac57f185d1a2203cd4b585df7bd7af01c3ec33ed
tree8e6d9a9c256db1e9f10e3bc0ef4f4d546ae6fcdb
parentb92b339705c9075a4b1b05b1b470827915dfe50d
Fix calls to overloaded slots for QObjects not created by QML

If we don't have a property cache, we need to fall back to a slower method of
determining the overload methods. We have the code for that in RelatedMethod,
once we determine that we're calling overloads, but we never hit that code path
because we did not _initially_ determine that the method was an overload.

Task-number: QTBUG-37157
Change-Id: I8ff39156e5668236b3797400b4086ed545624398
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4qobjectwrapper.cpp
tests/auto/qml/qjsengine/tst_qjsengine.cpp