| 1605 | } |
| 1606 | |
| 1607 | void |
| 1608 | GuiAppInstance::goToNextKeyframe() |
| 1609 | { |
| 1610 | ///runs only in the main thread |
| 1611 | assert( QThread::currentThread() == qApp->thread() ); |
| 1612 | |
| 1613 | _imp->timelineKeyframes.sort(); |
| 1614 | TimeLinePtr timeline = getProject()->getTimeLine(); |
| 1615 | SequenceTime currentFrame = timeline->currentFrame(); |
| 1616 | std::list<SequenceTime>::iterator upperBound = std::upper_bound(_imp->timelineKeyframes.begin(), _imp->timelineKeyframes.end(), currentFrame); |
| 1617 | if ( upperBound != _imp->timelineKeyframes.end() ) { |
| 1618 | timeline->seekFrame(*upperBound, true, NULL, eTimelineChangeReasonPlaybackSeek); |
| 1619 | } |
| 1620 | } |
| 1621 | |
| 1622 | void |
| 1623 | GuiAppInstance::setKnobDnDData(QDrag* drag, |
no test coverage detected