Now it depends against new version. Old code can be removed

This commit is contained in:
Laurent Montel 2020-10-22 14:06:09 +02:00
parent fe41af9e50
commit 9ffc8bf7d5
2 changed files with 0 additions and 10 deletions

View file

@ -67,13 +67,6 @@ void WindowEffects::slideWindow(WId id, KWindowEffects::SlideFromLocation locati
w->setProperty("kwin_slide_offset", offset); w->setProperty("kwin_slide_offset", offset);
} }
#if KWINDOWSYSTEM_VERSION <= QT_VERSION_CHECK(5, 61, 0)
void WindowEffects::slideWindow(QWidget *widget, KWindowEffects::SlideFromLocation location)
{
slideWindow(widget->winId(), location, 0);
}
#endif
QList<QSize> WindowEffects::windowSizes(const QList<WId> &ids) QList<QSize> WindowEffects::windowSizes(const QList<WId> &ids)
{ {
Q_UNUSED(ids) Q_UNUSED(ids)

View file

@ -18,9 +18,6 @@ public:
bool isEffectAvailable(KWindowEffects::Effect effect) override; bool isEffectAvailable(KWindowEffects::Effect effect) override;
void slideWindow(WId id, KWindowEffects::SlideFromLocation location, int offset) 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<QSize> windowSizes(const QList<WId> &ids) override; QList<QSize> windowSizes(const QList<WId> &ids) override;
void presentWindows(WId controller, const QList<WId> &ids) override; void presentWindows(WId controller, const QList<WId> &ids) override;
void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override; void presentWindows(WId controller, int desktop = NET::OnAllDesktops) override;