QmlDesigner.CapturedDataCommand: Store visible property

Change-Id: Idc2b4c9a859f9a9e03dea915ca98e91b4efdd488
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-02-08 17:57:28 +01:00
parent 9ddd354968
commit 1641f2eb87

View File

@@ -71,6 +71,10 @@ CapturedDataCommand::StateData collectStateData(ServerNodeInstance rootNodeInsta
if (!colorProperty.isNull()) if (!colorProperty.isNull())
nodeData.properties.emplace_back(QString{"color"}, colorProperty); nodeData.properties.emplace_back(QString{"color"}, colorProperty);
auto visibleProperty = instance.property("visible");
if (!colorProperty.isNull())
nodeData.properties.emplace_back(QString{"visible"}, visibleProperty);
stateData.nodeData.push_back(std::move(nodeData)); stateData.nodeData.push_back(std::move(nodeData));
} }