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

Method hasBuiltInEffect

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

Source from the content-addressed store, hash-verified

1900}
1901
1902bool EffectStackModel::hasBuiltInEffect(const QString effectId) const
1903{
1904 for (int i = 0; i < rootItem->childCount(); ++i) {
1905 const auto effect = std::static_pointer_cast<EffectItemModel>(rootItem->child(i));
1906 if (effect->isBuiltIn() && effect->isAssetEnabled() && effect->getAssetId() == effectId) {
1907 return true;
1908 }
1909 }
1910 return false;
1911}
1912
1913std::shared_ptr<EffectItemModel> EffectStackModel::getBuiltInEffect(const QString effectId)
1914{

Callers 1

setModelMethod · 0.80

Calls 5

childCountMethod · 0.80
childMethod · 0.80
isAssetEnabledMethod · 0.80
isBuiltInMethod · 0.45
getAssetIdMethod · 0.45

Tested by

no test coverage detected