MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / Populate

Method Populate

plugins/base/utils/transform-setting.cpp:368–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void TransformSettingSelection::Populate(obs_scene_item *source)
369{
370 auto settings = GetSoruceTransformSettings(source);
371 for (const auto &setting : settings) {
372 QVariant variant;
373 variant.setValue(setting);
374 auto name = mapIdToLocale(setting);
375 _settings->addItem(name, variant);
376 }
377 _settings->setCurrentIndex(-1);
378 TransformSetting emptySetting;
379 emit SelectionChanged(emptySetting);
380
381 adjustSize();
382 updateGeometry();
383}
384
385} // namespace advss

Callers

nothing calls this directly

Calls 3

mapIdToLocaleFunction · 0.85
setValueMethod · 0.45

Tested by

no test coverage detected