[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:
parent
ce31ac08d4
commit
3a46b3707a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue