| 728 | } |
| 729 | |
| 730 | void |
| 731 | KnobChoice::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 | |
| 751 | std::vector<ChoiceOption> |
| 752 | KnobChoice::getEntries_mt_safe() const |
no test coverage detected