| 1900 | } |
| 1901 | |
| 1902 | bool 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 | |
| 1913 | std::shared_ptr<EffectItemModel> EffectStackModel::getBuiltInEffect(const QString effectId) |
| 1914 | { |
no test coverage detected