MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / addOption

Method addOption

Engine/PyParameter.cpp:1767–1779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1765}
1766
1767void
1768ChoiceParam::addOption(const QString& option,
1769 const QString& help)
1770{
1771 KnobChoicePtr knob = _choiceKnob.lock();
1772
1773 if ( !knob || !knob->isUserKnob() ) {
1774 return;
1775 }
1776
1777 ChoiceOption opt(option.toStdString(), "", help.toStdString());
1778 knob->appendChoice(opt);
1779}
1780
1781void
1782ChoiceParam::setOptions(const std::list<std::pair<QString, QString> >& options)

Callers 1

Calls 4

toStdStringMethod · 0.80
appendChoiceMethod · 0.80
lockMethod · 0.45
isUserKnobMethod · 0.45

Tested by

no test coverage detected