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

Function populateSelection

plugins/base/macro-action-wait.cpp:245–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244template<typename T>
245static inline void populateSelection(QComboBox *list,
246 const std::map<T, std::string> &options)
247{
248 for (const auto &[value, name] : options) {
249 list->addItem(obs_module_text(name.c_str()),
250 static_cast<int>(value));
251 }
252}
253
254MacroActionWaitEdit::MacroActionWaitEdit(
255 QWidget *parent, std::shared_ptr<MacroActionWait> entryData)

Callers 1

MacroActionWaitEditMethod · 0.70

Calls 2

obs_module_textFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected