Changeset View
Changeset View
Standalone View
Standalone View
src/kwindoweffects.cpp
Show All 14 Lines | |||||
15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. | ||
16 | * | 16 | * | ||
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | #include "kwindoweffects_p.h" | 20 | #include "kwindoweffects_p.h" | ||
21 | #include "pluginwrapper_p.h" | 21 | #include "pluginwrapper_p.h" | ||
22 | #include <QGuiApplication> | 22 | #include <QGuiApplication> | ||
23 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 23 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 62) | ||
24 | #include <QWidget> | 24 | #include <QWidget> | ||
25 | #endif | 25 | #endif | ||
26 | 26 | | |||
27 | KWindowEffectsPrivate::KWindowEffectsPrivate() | 27 | KWindowEffectsPrivate::KWindowEffectsPrivate() | ||
28 | { | 28 | { | ||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | KWindowEffectsPrivate::~KWindowEffectsPrivate() | 31 | KWindowEffectsPrivate::~KWindowEffectsPrivate() | ||
Show All 38 Lines | 69 | { | |||
70 | KWindowSystemPluginWrapper::self().effects()->presentWindows(controller, desktop); | 70 | KWindowSystemPluginWrapper::self().effects()->presentWindows(controller, desktop); | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | void slideWindow(WId id, SlideFromLocation location, int offset) | 73 | void slideWindow(WId id, SlideFromLocation location, int offset) | ||
74 | { | 74 | { | ||
75 | KWindowSystemPluginWrapper::self().effects()->slideWindow(id, location, offset); | 75 | KWindowSystemPluginWrapper::self().effects()->slideWindow(id, location, offset); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 78 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 62) | ||
79 | void slideWindow(QWidget *widget, SlideFromLocation location) | 79 | void slideWindow(QWidget *widget, SlideFromLocation location) | ||
80 | { | 80 | { | ||
81 | slideWindow(widget->effectiveWinId(), location, -1); | 81 | slideWindow(widget->effectiveWinId(), location, -1); | ||
82 | } | 82 | } | ||
83 | #endif | 83 | #endif | ||
84 | 84 | | |||
85 | QList< QSize > windowSizes(const QList< WId > &ids) | 85 | QList< QSize > windowSizes(const QList< WId > &ids) | ||
86 | { | 86 | { | ||
87 | return KWindowSystemPluginWrapper::self().effects()->windowSizes(ids); | 87 | return KWindowSystemPluginWrapper::self().effects()->windowSizes(ids); | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | } | 90 | } |