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

Method SetActionData

lib/macro/macro-edit.cpp:723–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723void MacroEdit::SetActionData(Macro &m) const
724{
725 auto &actions = m.Actions();
726 for (int idx = 0; idx < ui->actionsList->ContentLayout()->count();
727 idx++) {
728 auto item = ui->actionsList->ContentLayout()->itemAt(idx);
729 if (!item) {
730 continue;
731 }
732 auto widget = static_cast<MacroActionEdit *>(item->widget());
733 if (!widget) {
734 continue;
735 }
736 widget->SetEntryData(&*(actions.begin() + idx));
737 }
738}
739
740void MacroEdit::SetElseActionData(Macro &m) const
741{

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