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

Method SetValues

lib/macro/macro-input.cpp:49–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void MacroInputVariables::SetValues(const StringList &values)
50{
51 if (_inputVariables.size() != (size_t)values.size()) {
52 blog(LOG_WARNING,
53 "%s - sizes do not match (variables: %d, values %d)",
54 __func__, (int)_inputVariables.size(), (int)values.size());
55 }
56
57 for (size_t index = 0;
58 index < _inputVariables.size() && index < (size_t)values.size();
59 index++) {
60 auto variable = _inputVariables.at(index).lock();
61 if (!variable) {
62 continue;
63 }
64
65 variable->SetValue(values.at(index));
66 }
67}
68
69MacroInputSelection::MacroInputSelection(QWidget *parent) : ListEditor(parent)
70{

Callers 1

runActionsHelperFunction · 0.45

Calls 2

sizeMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected