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

Function setHotkeyDescriptionHelper

lib/macro/macro.cpp:1168–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1166}
1167
1168void setHotkeyDescriptionHelper(const char *formatModuleText,
1169 const std::string name, const obs_hotkey_id id)
1170{
1171#ifndef UNIT_TEST
1172 QString format{obs_module_text(formatModuleText)};
1173 QString hotkeyDesc = format.arg(QString::fromStdString(name));
1174 obs_hotkey_set_description(id, hotkeyDesc.toStdString().c_str());
1175#endif // !UNIT_TEST
1176}
1177
1178void Macro::SetHotkeysDesc() const
1179{

Callers 1

SetHotkeysDescMethod · 0.85

Calls 2

obs_module_textFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected