Begin cleaning up QQmlValueTypeWrapper
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
Tue, 18 Nov 2014 16:28:40 +0000 (17:28 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 23 Dec 2014 07:36:16 +0000 (08:36 +0100)
commita77526aac1c50ab0e948d3885b462ce0d1796ea1
tree5e6a4824f133d9bd3c9274083eb329c993c41640
parent8906d90d8f9d4b6bc39bc6bda25e8d300c2f83c0
Begin cleaning up QQmlValueTypeWrapper

Get rid of the objectType member. Instead of checking for it and then
static_cast'ing to the specific class, it's easier to use Managed's as<>
template cast.

Also elimiate the QVariant value member for ValueTypeWrapperCopy. In fact, the
entire class is folded into ValueTypeWrapper itself as d()->type has the one
copy of the data.

Change-Id: I0d9c794400095830540d313187623b98b686f4cd
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlvaluetypewrapper.cpp
src/qml/qml/qqmlvaluetypewrapper_p.h