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

Method PopulateSelection

lib/utils/source-selection.cpp:158–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void SourceSelectionWidget::PopulateSelection()
159{
160 clear();
161 if (_addVariables) {
162 const QStringList variables = GetVariablesNameList();
163 AddSelectionGroup(this, variables);
164 }
165 _variablesEndIdx = count();
166
167 AddSelectionGroup(this, _populateSourcesCallback());
168 _sourcesEndIdx = count();
169
170 // Remove last separator
171 removeItem(count() - 1);
172 setCurrentIndex(-1);
173}
174
175SourceSelectionWidget::SourceSelectionWidget(
176 QWidget *parent, const std::function<QStringList()> &populate,

Callers

nothing calls this directly

Calls 3

GetVariablesNameListFunction · 0.85
AddSelectionGroupFunction · 0.85
countFunction · 0.85

Tested by

no test coverage detected