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

Method SetConditionData

lib/macro/macro-edit.cpp:757–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757void MacroEdit::SetConditionData(Macro &m) const
758{
759 auto &conditions = m.Conditions();
760 for (int idx = 0; idx < ui->conditionsList->ContentLayout()->count();
761 idx++) {
762 auto item = ui->conditionsList->ContentLayout()->itemAt(idx);
763 if (!item) {
764 continue;
765 }
766 auto widget = static_cast<MacroConditionEdit *>(item->widget());
767 if (!widget) {
768 continue;
769 }
770 widget->SetEntryData(&*(conditions.begin() + idx));
771 }
772}
773
774static void setupCopyPasteContextMenuEnry(MacroEdit *edit,
775 QWidget *macroActions,

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