diff --git a/effects/slide/slide.cpp b/effects/slide/slide.cpp index e5c9977a6c..9e0e8a4344 100644 --- a/effects/slide/slide.cpp +++ b/effects/slide/slide.cpp @@ -41,7 +41,7 @@ SlideEffect::SlideEffect() m_timeLine.setEasingCurve(QEasingCurve::OutCubic); - connect(effects, static_cast(&EffectsHandler::desktopChanged), + connect(effects, QOverload::of(&EffectsHandler::desktopChanged), this, &SlideEffect::desktopChanged); connect(effects, &EffectsHandler::windowAdded, this, &SlideEffect::windowAdded);