From 1b23a4a4108c9b6b4382dbb40b6c6f210bc4ca9c Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 22 Nov 2012 12:13:20 +0100 Subject: [PATCH] QmlDesigner.NodeInstances: Fix color reset value There is the color property with the r, g, b, a sub properties. Before this change we only saved the default of the sub properties. Change-Id: I11d4b0ed83cf8469836099a4f65942d7e8c8d8a6 Reviewed-by: Thomas Hartmann --- .../qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp index 3c2c0076891..d74a517fbc9 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp @@ -808,7 +808,9 @@ QStringList propertyNameForWritableProperties(QObject *object, const QString &ba QQmlValueType *valueType = QQmlValueTypeFactory::valueType(metaProperty.userType()); valueType->setValue(metaProperty.read(object)); propertyNameList.append(propertyNameForWritableProperties(valueType, baseName + QString::fromUtf8(metaProperty.name()) + '.', inspectedObjects)); - } else if (metaProperty.isReadable() && metaProperty.isWritable()) { + } + + if (metaProperty.isReadable() && metaProperty.isWritable()) { propertyNameList.append(baseName + QString::fromUtf8(metaProperty.name())); } }