Fix hasOwnProperty on various types wrapped in QML
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 8 Aug 2013 10:52:56 +0000 (12:52 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 Aug 2013 13:35:18 +0000 (15:35 +0200)
commit0c179baade8f4a57c0f9fe7b48367412e8a41f2a
tree30c775eda2fcba23827bdfc7f5d4c042813b8a2e
parent5046e8898803ab3e83f4dae1260345fdba207a32
Fix hasOwnProperty on various types wrapped in QML

* Change semantics of Object::query to not walk the prototype chain but let the
  caller do that where needed (__hasProperty__)
* Re-implement query in various places
* Implement method_hasOwnProperty to fall back to query() if getOwnProperty failed
* Fix missing prototype initialization in some qml wrappers, as well as missing base
  class calls to ::get()

Change-Id: Ic2a702fd5ff3be2ff3c8317a8a24f99940a9594f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/jsruntime/qv4object.cpp
src/qml/jsruntime/qv4object_p.h
src/qml/jsruntime/qv4objectproto.cpp
src/qml/qml/qqmllistwrapper.cpp
src/qml/qml/qqmltypewrapper.cpp
src/qml/qml/qqmltypewrapper_p.h
src/qml/qml/qqmlvaluetypewrapper.cpp
src/qml/qml/qqmlvaluetypewrapper_p.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp