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

Method SetValue

lib/variables/variable-spinbox.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void GenericVariableSpinbox::SetValue(const NumberVariable<int> &number)
54{
55 _numberInt = number;
56 const QSignalBlocker b1(_toggleType);
57 const QSignalBlocker b2(_variable);
58 _toggleType->setChecked(!number.IsFixedType());
59 _fixedValueInt->setValue(number._value);
60 _variable->SetVariable(number._variable);
61 SetVisibility();
62}
63
64void GenericVariableSpinbox::SetValue(const NumberVariable<double> &number)
65{

Callers

nothing calls this directly

Calls 4

setCheckedMethod · 0.80
IsFixedTypeMethod · 0.80
setValueMethod · 0.45
SetVariableMethod · 0.45

Tested by

no test coverage detected