| 571 | } |
| 572 | |
| 573 | bool |
| 574 | KnobChoice::cloneExtraDataAndCheckIfChanged(KnobI* other, |
| 575 | int /*dimension*/, |
| 576 | int /*otherDimension*/) |
| 577 | { |
| 578 | KnobChoice* isChoice = dynamic_cast<KnobChoice*>(other); |
| 579 | |
| 580 | if (!isChoice) { |
| 581 | return false; |
| 582 | } |
| 583 | |
| 584 | ChoiceOption otherEntry = isChoice->getActiveEntry(); |
| 585 | QMutexLocker k(&_entriesMutex); |
| 586 | if (_currentEntry.id != otherEntry.id) { |
| 587 | _currentEntry = otherEntry; |
| 588 | |
| 589 | return true; |
| 590 | } |
| 591 | |
| 592 | return false; |
| 593 | } |
| 594 | |
| 595 | void |
| 596 | KnobChoice::cloneExtraData(KnobI* other, |
nothing calls this directly
no test coverage detected