QmlDesigner: Fix timeline playhead sync issue

Fixes: QDS-14683
Change-Id: Ifdb103b9b31240a290a3d847cc1bfada06b38161
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Shrief Gabr
2025-02-19 11:32:38 +02:00
parent 0667e60047
commit 88026e33b3

View File

@@ -679,21 +679,6 @@ void NodeInstanceView::auxiliaryDataChanged(const ModelNode &node,
NodeInstance instance = instanceForModelNode(node); NodeInstance instance = instanceForModelNode(node);
PropertyValueContainer container{instance.instanceId(), key.name, value, TypeName(), key.type}; PropertyValueContainer container{instance.instanceId(), key.name, value, TypeName(), key.type};
m_nodeInstanceServer->changeAuxiliaryValues({{container}}); m_nodeInstanceServer->changeAuxiliaryValues({{container}});
const PropertyName name = key.name.toByteArray();
if (node.hasVariantProperty(name)) {
PropertyValueContainer container(instance.instanceId(),
name,
node.variantProperty(name).value(),
TypeName());
ChangeValuesCommand changeValueCommand({container});
m_nodeInstanceServer->changePropertyValues(changeValueCommand);
} else if (node.hasBindingProperty(name)) {
PropertyBindingContainer container{instance.instanceId(),
name,
node.bindingProperty(name).expression(),
TypeName()};
m_nodeInstanceServer->changePropertyBindings({{container}});
}
} }
break; break;