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

Function populateModeSelection

plugins/base/macro-action-source.cpp:432–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430
431template<typename T>
432static inline void populateModeSelection(QComboBox *list, const T &modes)
433{
434 list->clear();
435 for (const auto &[value, name] : modes) {
436 list->addItem(obs_module_text(name.c_str()),
437 static_cast<int>(value));
438 }
439}
440
441static QStringList getSourcesList()
442{

Callers 1

MacroActionSourceEditMethod · 0.85

Calls 2

obs_module_textFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected