forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user