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

Method PopulateSelection

plugins/base/utils/filter-selection.cpp:202–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void FilterSelectionWidget::PopulateSelection()
203{
204 const QSignalBlocker b(this);
205 clear();
206
207 AddSelectionGroup(
208 this,
209 {obs_module_text("AdvSceneSwitcher.filterSelection.all")});
210 _allEndIdx = count();
211
212 if (_addVariables) {
213 const QStringList variables = GetVariablesNameList();
214 AddSelectionGroup(this, variables);
215 }
216 _variablesEndIdx = count();
217
218 AddSelectionGroup(this, getFilterNames(_source.GetSource()));
219 _filterEndIdx = count();
220
221 // Remove last separator
222 removeItem(count() - 1);
223 setCurrentIndex(-1);
224}
225
226FilterSelectionWidget::FilterSelectionWidget(QWidget *parent,
227 SourceSelectionWidget *sources,

Callers

nothing calls this directly

Calls 6

AddSelectionGroupFunction · 0.85
obs_module_textFunction · 0.85
countFunction · 0.85
GetVariablesNameListFunction · 0.85
getFilterNamesFunction · 0.85
GetSourceMethod · 0.45

Tested by

no test coverage detected