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

Function populateSelection

plugins/base/macro-condition-source.cpp:254–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252
253template<class T>
254static inline void populateSelection(QComboBox *list, const T &map)
255{
256 for (const auto &[value, name] : map) {
257 list->addItem(obs_module_text(name.c_str()),
258 static_cast<int>(value));
259 }
260}
261
262static QStringList getSourcesList()
263{

Callers 1

Calls 2

obs_module_textFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected