| 708 | } |
| 709 | |
| 710 | QString 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 | |
| 727 | int MacroTreeModel::GetItemMacroIndex(const std::shared_ptr<Macro> &item) const |
| 728 | { |
nothing calls this directly
no test coverage detected