diff --git a/src/windowsystem/windoweffects.h b/src/windowsystem/windoweffects.h --- a/src/windowsystem/windoweffects.h +++ b/src/windowsystem/windoweffects.h @@ -21,6 +21,7 @@ #ifndef WINDOWEFFECTS_H #define WINDOWEFFECTS_H #include +#include #include @@ -50,7 +51,9 @@ bool isEffectAvailable(KWindowEffects::Effect effect) override; void slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset) override; +#if KWINDOWSYSTEM_VERSION <= QT_VERSION_CHECK(5, 61, 0) void slideWindow(QWidget *widget, KWindowEffects::SlideFromLocation location) override; +#endif QList windowSizes(const QList &ids) override; void presentWindows(WId controller, const QList &ids) override; void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override; diff --git a/src/windowsystem/windoweffects.cpp b/src/windowsystem/windoweffects.cpp --- a/src/windowsystem/windoweffects.cpp +++ b/src/windowsystem/windoweffects.cpp @@ -165,10 +165,12 @@ } } +#if KWINDOWSYSTEM_VERSION <= QT_VERSION_CHECK(5, 61, 0) void WindowEffects::slideWindow(QWidget *widget, KWindowEffects::SlideFromLocation location) { slideWindow(widget->winId(), location, 0); } +#endif QList WindowEffects::windowSizes(const QList &ids) {