BaseEngineDebugClient: Unpack property of type Variant

Task-number: QTCREATORBUG-7456

Change-Id: I6db02007ce4e89f7203530167ca307dc29bd4fe1
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
Aurindam Jana
2012-05-25 10:20:56 +02:00
parent 69a90cf9dd
commit 637ae98c6f

View File

@@ -53,7 +53,7 @@ QDataStream &operator>>(QDataStream &ds, QmlObjectData &data)
} }
struct QmlObjectProperty { struct QmlObjectProperty {
enum Type { Unknown, Basic, Object, List, SignalProperty }; enum Type { Unknown, Basic, Object, List, SignalProperty, Variant };
Type type; Type type;
QString name; QString name;
QVariant value; QVariant value;
@@ -120,6 +120,7 @@ void BaseEngineDebugClient::decode(QDataStream &ds,
case QmlObjectProperty::Basic: case QmlObjectProperty::Basic:
case QmlObjectProperty::List: case QmlObjectProperty::List:
case QmlObjectProperty::SignalProperty: case QmlObjectProperty::SignalProperty:
case QmlObjectProperty::Variant:
{ {
prop.m_value = data.value; prop.m_value = data.value;
break; break;