| 915 | } // KnobChoice::getHintToolTipFull |
| 916 | |
| 917 | KnobHelper::ValueChangedReturnCodeEnum |
| 918 | KnobChoice::setValueFromID(const std::string & value, |
| 919 | int dimension, |
| 920 | bool turnOffAutoKeying) |
| 921 | { |
| 922 | int i; |
| 923 | { |
| 924 | QMutexLocker k(&_entriesMutex); |
| 925 | i = choiceMatch(value, _entries, &_currentEntry); |
| 926 | } |
| 927 | if (i >= 0) { |
| 928 | return setValue(i, ViewIdx(0), dimension, turnOffAutoKeying); |
| 929 | } |
| 930 | /*{ |
| 931 | QMutexLocker k(&_entriesMutex); |
| 932 | _currentEntryLabel = value; |
| 933 | } |
| 934 | return setValue(-1, ViewIdx(0), dimension, turnOffAutoKeying);*/ |
| 935 | return eValueChangedReturnCodeNothingChanged; |
| 936 | } |
| 937 | |
| 938 | void |
| 939 | KnobChoice::setDefaultValueFromIDWithoutApplying(const std::string & value, |
no test coverage detected