MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / removeMultipleKeyframeIndicator

Method removeMultipleKeyframeIndicator

Gui/GuiAppInstance.cpp:1430–1446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428}
1429
1430void
1431GuiAppInstance::removeMultipleKeyframeIndicator(const std::list<SequenceTime> & keys,
1432 bool emitSignal)
1433{
1434 ///runs only in the main thread
1435 assert( QThread::currentThread() == qApp->thread() );
1436
1437 for (std::list<SequenceTime>::const_iterator it = keys.begin(); it != keys.end(); ++it) {
1438 std::list<SequenceTime>::iterator it2 = std::find(_imp->timelineKeyframes.begin(), _imp->timelineKeyframes.end(), *it);
1439 if ( it2 != _imp->timelineKeyframes.end() ) {
1440 _imp->timelineKeyframes.erase(it2);
1441 }
1442 }
1443 if (!keys.empty() && emitSignal) {
1444 Q_EMIT keyframeIndicatorsChanged();
1445 }
1446}
1447
1448void
1449GuiAppInstance::removeAllUserKeyframesIndicators()

Calls 4

emptyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected