Open bjorn opened 4 months ago
Urgh, turned out the "Ability to add items to a list" is only mostly working. When just pressing the "+ Add" button instead of using the menu, it is not possible to add items of the same custom enum or class type. This is because the values are at that point converted to their "display value", which means a class is just a map and an enum is just a number, and only the CustomPropertiesHelper
knows the associated type.
Implementation so far:
QVariantList
.CustomPropertiesHelper
to create sub-properties that display the values in the list (maybe should rather be done by theVariantPropertyManager
).VariantPropertyManager
because it couldn't delegate class member creation back to theCustomPropertiesHelper
. IfVariantPropertyManager
should handle lists, then it would need to handle classes as well.ToDo:
Resolves #1493