| 818 | } |
| 819 | |
| 820 | void 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 | |
| 836 | void EffectStackView::addRemoveKeyframe() |
| 837 | { |
no test coverage detected