[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
This commit is contained in:
Vlad Zagorodniy 2018-09-05 20:49:24 +03:00
parent ce31ac08d4
commit 3a46b3707a

View file

@ -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);