QmlDesigner: Fix incorrect bindings created for MCU

Fixes: QDS-13714
Change-Id: I2e4708156d6b58e7e92788e1928f389f04d044eb
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Vikas Pachdha
2024-09-23 11:24:01 +02:00
parent f880edb808
commit b3c5c748c3

View File

@@ -180,9 +180,14 @@ void DSThemeGroup::decorate(ThemeId theme, ModelNode themeNode, DECORATION_CONTE
auto &propData = themeValue->second;
if (propData.isBinding) {
auto bindingProp = targetNode->bindingProperty(propName);
if (bindingProp)
bindingProp.setDynamicTypeNameAndExpression(*typeName,
propData.value.toString());
if (!bindingProp)
continue;
if (decorationContext == DECORATION_CONTEXT::MCU)
bindingProp.setExpression(propData.value.toString());
else
bindingProp.setDynamicTypeNameAndExpression(*typeName, propData.value.toString());
} else {
auto nodeProp = targetNode->variantProperty(propName);
if (!nodeProp)