QmlDesigner: Fix crash in project storage builds

Display name does not work at all and makes no sense here.
We use the first exported type name.

Task-number: QDS-15029
Change-Id: I825447e18c940996dc7c80ff9ff31aded7d8b666
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Thomas Hartmann
2025-04-09 14:33:18 +02:00
committed by Thomas Hartmann
parent aa3d61da93
commit 4d93a8b663

View File

@@ -260,8 +260,12 @@ void BindingEditor::prepareBindings()
}
if (!binding.properties.isEmpty()) {
binding.item = metaInfo.displayName();
for (auto &exportedType :
metaInfo.exportedTypeNamesForSourceId(model->fileUrlSourceId())) {
binding.item = exportedType.name.toQString();
bindings.append(binding);
break;
}
}
}
}