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

Method appendChoice

Engine/KnobTypes.cpp:730–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730void
731KnobChoice::appendChoice(const ChoiceOption& entry)
732{
733 {
734 QMutexLocker l(&_entriesMutex);
735 _entries.push_back(entry);
736 ChoiceOption& opt = _entries.back();
737
738 // If label is empty, set to the option id
739 if (opt.label.empty()) {
740 opt.label = opt.id;
741 }
742 }
743
744 findAndSetOldChoice();
745 if (_signalSlotHandler) {
746 _signalSlotHandler->s_helpChanged();
747 }
748 Q_EMIT entryAppended();
749}
750
751std::vector<ChoiceOption>
752KnobChoice::getEntries_mt_safe() const

Callers 4

setOptionMethod · 0.80
addOptionMethod · 0.80
tryAddProjectFormatMethod · 0.80

Calls 2

emptyMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected