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

Method resetService

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

Source from the content-addressed store, hash-verified

52}
53
54void EffectStackModel::resetService(std::weak_ptr<Mlt::Service> service)
55{
56 QWriteLocker locker(&m_lock);
57 m_masterService = std::move(service);
58 m_childServices.clear();
59 // replant all effects in new service
60 for (int i = 0; i < rootItem->childCount(); ++i) {
61 std::static_pointer_cast<EffectItemModel>(rootItem->child(i))->plant(m_masterService);
62 }
63}
64
65void EffectStackModel::addService(std::weak_ptr<Mlt::Service> service)
66{

Callers 2

updateProducerMethod · 0.80

Calls 4

childCountMethod · 0.80
childMethod · 0.80
clearMethod · 0.45
plantMethod · 0.45

Tested by

no test coverage detected