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

Method PopulateSelection

plugins/base/utils/source-properties-button.cpp:105–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void SourceSettingsButtonSelection::PopulateSelection(
106 const OBSWeakSource &source)
107{
108 const QSignalBlocker b(this);
109 clear();
110 auto buttons = GetSourceButtons(source);
111 if (buttons.empty()) {
112 addItem(obs_module_text("AdvSceneSwitcher.noSettingsButtons"));
113 }
114
115 for (const auto &button : buttons) {
116 QVariant value;
117 value.setValue(button);
118 addItem(QString::fromStdString(button.ToString()), value);
119 }
120}
121
122} // namespace advss

Callers

nothing calls this directly

Calls 5

GetSourceButtonsFunction · 0.85
obs_module_textFunction · 0.85
emptyMethod · 0.45
setValueMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected