MCPcopy Create free account
hub / github.com/OpenSpace/OpenSpace / populateUnionWidget

Function populateUnionWidget

apps/AssetBuilder/src/form/schemaformwidget.cpp:297–354  ·  view source on GitHub ↗

A union field stores only the raw property value (no type tag), so we need to deduce which type it is by inspecting the value and matching it against the entries in the union's type combo box. The combo entries correspond to schema types like "Double", "String", "Vector3 ", etc. We check the value's runtime type (isDouble, isString, isList, isBool) and search the combo for a matching entry

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

SchemaFormWidgetMethod · 0.85

Calls 8

populateWidgetFunction · 0.85
isDoubleMethod · 0.80
isBoolMethod · 0.80
isListMethod · 0.80
isStringMethod · 0.80
setCurrentIndexMethod · 0.80
QStringClass · 0.50
isVisibleMethod · 0.45

Tested by

no test coverage detected