aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Winkelmann <michael.winkelmann@qt.io>2020-09-14 12:29:21 +0200
committerMichael Winkelmann <michael.winkelmann@qt.io>2020-09-14 13:45:15 +0000
commit64a37ec38a21b31d946a2184d8af18fe0b4f4ad4 (patch)
tree3ecd1e49175b8a65ddb55d90976890e9acd2d8c9
parentf641434ec15996d566ad06d9f19f52edb4b3e46c (diff)
QmlPuppet: Return color property
Change-Id: Icc25fb0408aae50f67633688f221194ab6f77cd3 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
-rw-r--r--share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5capturepreviewnodeinstanceserver.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5capturepreviewnodeinstanceserver.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5capturepreviewnodeinstanceserver.cpp
index 46461581f8..c70ef76afe 100644
--- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5capturepreviewnodeinstanceserver.cpp
+++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5capturepreviewnodeinstanceserver.cpp
@@ -66,7 +66,10 @@ CapturedDataCommand::StateData collectStateData(ServerNodeInstance rootNodeInsta
nodeData.sceneTransform = instance.sceneTransform();
auto textProperty = instance.property("text");
if (!textProperty.isNull() && instance.holdsGraphical())
- nodeData.properties.emplace_back(QString{"text"}, textProperty.toString());
+ nodeData.properties.emplace_back(QString{"text"}, textProperty);
+ auto colorProperty = instance.property("color");
+ if (!colorProperty.isNull())
+ nodeData.properties.emplace_back(QString{"color"}, colorProperty);
stateData.nodeData.push_back(std::move(nodeData));
}