MCPcopy Create free account
hub / github.com/KDE/kdenlive / slotGoToKeyframe

Method slotGoToKeyframe

src/effects/effectstack/view/effectstackview.cpp:820–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820void EffectStackView::slotGoToKeyframe(bool next)
821{
822 int max = m_model->rowCount();
823 int currentActive = m_model->getActiveEffect();
824 if (currentActive < max && currentActive > -1) {
825 auto item = m_model->getEffectStackRow(currentActive);
826 QModelIndex ix = m_filter->mapFromSource(m_model->getIndexFromItem(item));
827 auto *w = static_cast<CollapsibleEffectView *>(m_effectsTree->indexWidget(ix));
828 if (next) {
829 w->slotNextKeyframe();
830 } else {
831 w->slotPreviousKeyframe();
832 }
833 }
834}
835
836void EffectStackView::addRemoveKeyframe()
837{

Callers 2

slotNextKeyframeMethod · 0.80
slotPreviousKeyframeMethod · 0.80

Calls 6

getActiveEffectMethod · 0.80
getEffectStackRowMethod · 0.80
getIndexFromItemMethod · 0.80
rowCountMethod · 0.45
slotNextKeyframeMethod · 0.45
slotPreviousKeyframeMethod · 0.45

Tested by

no test coverage detected