MCPcopy Create free account
hub / github.com/Sonic-DE/sonic-win / ScriptedEffect

Method ScriptedEffect

src/scripting/scriptedeffect.cpp:191–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191ScriptedEffect::ScriptedEffect()
192 : AnimationEffect()
193 , m_engine(new QJSEngine(this))
194 , m_scriptFile(QString())
195 , m_config(nullptr)
196 , m_chainPosition(0)
197{
198 Q_ASSERT(effects);
199 connect(effects, &EffectsHandler::activeFullScreenEffectChanged, this, [this]() {
200 Effect *fullScreenEffect = effects->activeFullScreenEffect();
201 if (fullScreenEffect == m_activeFullScreenEffect) {
202 return;
203 }
204 if (m_activeFullScreenEffect == this || fullScreenEffect == this) {
205 Q_EMIT isActiveFullScreenEffectChanged();
206 }
207 m_activeFullScreenEffect = fullScreenEffect;
208 });
209}
210
211ScriptedEffect::~ScriptedEffect() = default;
212

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected