Commit 3a46b370 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/slide] Use QOverload

Summary: With QOverload the code is slightly cleaner.

Test Plan: Compiles.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15300
parent ce31ac08
......@@ -41,7 +41,7 @@ SlideEffect::SlideEffect()
m_timeLine.setEasingCurve(QEasingCurve::OutCubic);
connect(effects, static_cast<void (EffectsHandler::*)(int,int,EffectWindow*)>(&EffectsHandler::desktopChanged),
connect(effects, QOverload<int, int, EffectWindow *>::of(&EffectsHandler::desktopChanged),
this, &SlideEffect::desktopChanged);
connect(effects, &EffectsHandler::windowAdded,
this, &SlideEffect::windowAdded);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment