forked from qt-creator/qt-creator
QmlDesigner.CapturedDataCommand: Store visible property
Change-Id: Idc2b4c9a859f9a9e03dea915ca98e91b4efdd488 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user