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

Function GetSourceNames

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

Source from the content-addressed store, hash-verified

121}
122
123QStringList GetSourceNames()
124{
125 auto sourceEnum = [](void *param, obs_source_t *source) -> bool /* -- */
126 {
127 QStringList *list = reinterpret_cast<QStringList *>(param);
128 *list << obs_source_get_name(source);
129 return true;
130 };
131
132 QStringList list;
133 obs_enum_sources(sourceEnum, &list);
134 return list;
135}
136
137void PopulateTransitionSelection(QComboBox *sel, bool addCurrent, bool addAny,
138 bool addSelect)

Callers 3

getSourcesListFunction · 0.85
getSourcesListFunction · 0.85
getSourcesListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected