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

Function populateActionSelection

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

Source from the content-addressed store, hash-verified

415}
416
417static inline void populateActionSelection(QComboBox *list)
418{
419 for (auto &[actionType, name] : actionTypes) {
420 list->addItem(obs_module_text(name.c_str()));
421 if (actionType == MacroActionSource::Action::REFRESH_SETTINGS) {
422 list->setItemData(
423 list->count() - 1,
424 obs_module_text(
425 "AdvSceneSwitcher.action.source.type.refreshSettings.tooltip"),
426 Qt::ToolTipRole);
427 }
428 }
429}
430
431template<typename T>
432static inline void populateModeSelection(QComboBox *list, const T &modes)

Callers 1

MacroActionSourceEditMethod · 0.70

Calls 3

obs_module_textFunction · 0.85
countMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected