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

Method SetElseActionData

lib/macro/macro-edit.cpp:740–755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740void MacroEdit::SetElseActionData(Macro &m) const
741{
742 auto &actions = m.ElseActions();
743 for (int idx = 0; idx < ui->elseActionsList->ContentLayout()->count();
744 idx++) {
745 auto item = ui->elseActionsList->ContentLayout()->itemAt(idx);
746 if (!item) {
747 continue;
748 }
749 auto widget = static_cast<MacroActionEdit *>(item->widget());
750 if (!widget) {
751 continue;
752 }
753 widget->SetEntryData(&*(actions.begin() + idx));
754 }
755}
756
757void MacroEdit::SetConditionData(Macro &m) const
758{

Callers

nothing calls this directly

Calls 4

countMethod · 0.80
ContentLayoutMethod · 0.80
SetEntryDataMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected