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

Function PopulateProcessSelection

lib/utils/selection-helpers.cpp:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void PopulateProcessSelection(QComboBox *sel, bool addSelect)
258{
259 auto processes = GetProcessList();
260 processes.sort();
261 for (QString &process : processes) {
262 sel->addItem(process);
263 }
264
265 sel->model()->sort(0);
266 if (addSelect) {
267 AddSelectionEntry(
268 sel, obs_module_text("AdvSceneSwitcher.selectProcess"));
269 }
270 sel->setCurrentIndex(0);
271}
272
273void PopulateSceneSelection(QComboBox *sel, bool addPrevious, bool addCurrent,
274 bool addAny, bool addSceneGroup,

Callers 1

Calls 4

AddSelectionEntryFunction · 0.85
obs_module_textFunction · 0.85
modelMethod · 0.80
GetProcessListFunction · 0.50

Tested by

no test coverage detected