Adapt to deprecated KWindowSystem API
This commit is contained in:
parent
f191efb39e
commit
6e0012a3c9
2 changed files with 8 additions and 0 deletions
|
@ -73,9 +73,11 @@ int WindowSystem::currentDesktop()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101)
|
||||||
void WindowSystem::demandAttention(WId win, bool set)
|
void WindowSystem::demandAttention(WId win, bool set)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
QString WindowSystem::desktopName(int desktop)
|
QString WindowSystem::desktopName(int desktop)
|
||||||
{
|
{
|
||||||
|
@ -158,9 +160,11 @@ void WindowSystem::setStrut(WId win, int left, int right, int top, int bottom)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101)
|
||||||
void WindowSystem::setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon)
|
void WindowSystem::setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void WindowSystem::setOnActivities(WId win, const QStringList &activities)
|
void WindowSystem::setOnActivities(WId win, const QStringList &activities)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,9 @@ public:
|
||||||
WId activeWindow() override;
|
WId activeWindow() override;
|
||||||
void activateWindow(WId win, long time) override;
|
void activateWindow(WId win, long time) override;
|
||||||
void forceActiveWindow(WId win, long time) override;
|
void forceActiveWindow(WId win, long time) override;
|
||||||
|
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101)
|
||||||
void demandAttention(WId win, bool set) override;
|
void demandAttention(WId win, bool set) override;
|
||||||
|
#endif
|
||||||
bool compositingActive() override;
|
bool compositingActive() override;
|
||||||
int currentDesktop() override;
|
int currentDesktop() override;
|
||||||
int numberOfDesktops() override;
|
int numberOfDesktops() override;
|
||||||
|
@ -35,7 +37,9 @@ public:
|
||||||
WId groupLeader(WId window) override;
|
WId groupLeader(WId window) override;
|
||||||
#endif
|
#endif
|
||||||
QPixmap icon(WId win, int width, int height, bool scale, int flags) override;
|
QPixmap icon(WId win, int width, int height, bool scale, int flags) override;
|
||||||
|
#if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 101)
|
||||||
void setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon) override;
|
void setIcons(WId win, const QPixmap &icon, const QPixmap &miniIcon) override;
|
||||||
|
#endif
|
||||||
void setType(WId win, NET::WindowType windowType) override;
|
void setType(WId win, NET::WindowType windowType) override;
|
||||||
void setState(WId win, NET::States state) override;
|
void setState(WId win, NET::States state) override;
|
||||||
void clearState(WId win, NET::States state) override;
|
void clearState(WId win, NET::States state) override;
|
||||||
|
|
Loading…
Reference in a new issue