| 55 | } |
| 56 | |
| 57 | void |
| 58 | TimeLine::seekFrame(SequenceTime frame, |
| 59 | bool updateLastCaller, |
| 60 | OutputEffectInstance* caller, |
| 61 | TimelineChangeReasonEnum reason) |
| 62 | { |
| 63 | if (reason != eTimelineChangeReasonPlaybackSeek) { |
| 64 | Q_EMIT frameAboutToChange(); |
| 65 | } |
| 66 | bool changed = false; |
| 67 | { |
| 68 | QMutexLocker l(&_lock); |
| 69 | if (_currentFrame != frame) { |
| 70 | _currentFrame = frame; |
| 71 | changed = true; |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | if (_project && updateLastCaller) { |
| 76 | _project->getApp()->setLastViewerUsingTimeline( caller ? caller->getNode() : NodePtr() ); |
| 77 | } |
| 78 | if (changed) { |
| 79 | Q_EMIT frameChanged(frame, (int)reason); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | void |
| 84 | TimeLine::incrementCurrentFrame() |
no test coverage detected