Remove slideWindow(QWidget*) overload with recent KWindowSystem
Test Plan: Fixes the build after https://phabricator.kde.org/D23213 Reviewers: davidedmundson, zzag Reviewed By: zzag Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23227
This commit is contained in:
parent
304c2f9f93
commit
ba5432fd52
2 changed files with 5 additions and 0 deletions
|
@ -81,10 +81,12 @@ 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)
|
void WindowEffects::slideWindow(QWidget *widget, KWindowEffects::SlideFromLocation location)
|
||||||
{
|
{
|
||||||
slideWindow(widget->winId(), location, 0);
|
slideWindow(widget->winId(), location, 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
QList<QSize> WindowEffects::windowSizes(const QList<WId> &ids)
|
QList<QSize> WindowEffects::windowSizes(const QList<WId> &ids)
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <KWindowSystem/private/kwindoweffects_p.h>
|
#include <KWindowSystem/private/kwindoweffects_p.h>
|
||||||
|
#include <kwindowsystem_version.h>
|
||||||
|
|
||||||
namespace KWin
|
namespace KWin
|
||||||
{
|
{
|
||||||
|
@ -31,7 +32,9 @@ 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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue