MCPcopy Create free account
hub / github.com/KDE/kwin / ScriptedEffect

Method ScriptedEffect

src/scripting/scriptedeffect.cpp:207–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207ScriptedEffect::ScriptedEffect()
208 : AnimationEffect()
209 , m_engine(new QJSEngine(this))
210 , m_scriptFile(QString())
211 , m_config(nullptr)
212 , m_chainPosition(0)
213{
214 Q_ASSERT(effects);
215 connect(effects, &EffectsHandler::activeFullScreenEffectChanged, this, [this]() {
216 Effect *fullScreenEffect = effects->activeFullScreenEffect();
217 if (fullScreenEffect == m_activeFullScreenEffect) {
218 return;
219 }
220 if (m_activeFullScreenEffect == this || fullScreenEffect == this) {
221 Q_EMIT isActiveFullScreenEffectChanged();
222 }
223 m_activeFullScreenEffect = fullScreenEffect;
224 });
225}
226
227ScriptedEffect::~ScriptedEffect() = default;
228

Callers

nothing calls this directly

Calls 2

QStringClass · 0.85

Tested by

no test coverage detected