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

Method GetNewGroupName

lib/macro/macro-tree.cpp:710–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710QString MacroTreeModel::GetNewGroupName()
711{
712 QString fmt =
713 obs_module_text("AdvSceneSwitcher.macroTab.defaultGroupName");
714 QString name = fmt.arg("1");
715
716 int i = 2;
717 for (;;) {
718 if (!GetMacroByQString(name)) {
719 break;
720 }
721 name = fmt.arg(QString::number(i++));
722 }
723
724 return name;
725}
726
727int MacroTreeModel::GetItemMacroIndex(const std::shared_ptr<Macro> &item) const
728{

Callers

nothing calls this directly

Calls 2

obs_module_textFunction · 0.85
GetMacroByQStringFunction · 0.85

Tested by

no test coverage detected