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

Method appendEffect

src/effects/effectstack/model/effectstackmodel.cpp:727–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

725}
726
727bool EffectStackModel::appendEffect(const QString &effectId, bool makeCurrent, stringMap params)
728{
729 Fun undo = []() { return true; };
730 Fun redo = []() { return true; };
731 bool result = doAppendEffect(effectId, makeCurrent, params, undo, redo).first;
732 if (result) {
733 PUSH_UNDO(undo, redo, i18n("Add effect %1", EffectsRepository::get()->getName(effectId)));
734 }
735 return result;
736}
737
738std::pair<bool, bool> EffectStackModel::doAppendEffect(const QString &effectId, bool makeCurrent, stringMap params, Fun &undo, Fun &redo)
739{

Callers 12

applyMaskMethod · 0.80
dropEventMethod · 0.80
addEffectMethod · 0.80
addEffectMethod · 0.80
addEffectMethod · 0.80
addEffectMethod · 0.80
addTrackEffectMethod · 0.80
addMaskMethod · 0.80
effectstest.cppFile · 0.80
nestingtest.cppFile · 0.80
keyframetest.cppFile · 0.80

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected