Get rid of special handling of var properties
authorLars Knoll <lars.knoll@theqtcompany.com>
Mon, 10 Aug 2015 11:39:32 +0000 (13:39 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Tue, 18 Aug 2015 20:27:11 +0000 (20:27 +0000)
commit6cd0001054faa9c7c20dcd5e9c7512367b2c1f5f
tree3d7468705795b5bb52ea629f4f59312ba9f0d979
parent0ed9784082b1e21cd8fcc49ef4afbe52af3fdef4
Get rid of special handling of var properties

These can be handled in a simple way now by using a special
propertyType value indicating that we have a var property.

Also remove the additional write calls in the different
readProperty implementations. If the stored data doesn't
match, we can simply return the default value directly.

Change-Id: I3823a971df24bd78f0acdc4c0042776277b3c55f
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/compiler/qqmltypecompiler.cpp
src/qml/qml/qqmlvmemetaobject.cpp
src/qml/qml/qqmlvmemetaobject_p.h
src/quick/designer/qqmldesignermetaobject.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp