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 | ||||
24 | #include <QWidget> | ||||
25 | #endif | ||||
23 | 26 | | |||
24 | KWindowEffectsPrivate::KWindowEffectsPrivate() | 27 | KWindowEffectsPrivate::KWindowEffectsPrivate() | ||
25 | { | 28 | { | ||
26 | } | 29 | } | ||
27 | 30 | | |||
28 | KWindowEffectsPrivate::~KWindowEffectsPrivate() | 31 | KWindowEffectsPrivate::~KWindowEffectsPrivate() | ||
29 | { | 32 | { | ||
30 | } | 33 | } | ||
Show All 36 Lines | 69 | { | |||
67 | KWindowSystemPluginWrapper::self().effects()->presentWindows(controller, desktop); | 70 | KWindowSystemPluginWrapper::self().effects()->presentWindows(controller, desktop); | ||
68 | } | 71 | } | ||
69 | 72 | | |||
70 | void slideWindow(WId id, SlideFromLocation location, int offset) | 73 | void slideWindow(WId id, SlideFromLocation location, int offset) | ||
71 | { | 74 | { | ||
72 | KWindowSystemPluginWrapper::self().effects()->slideWindow(id, location, offset); | 75 | KWindowSystemPluginWrapper::self().effects()->slideWindow(id, location, offset); | ||
73 | } | 76 | } | ||
74 | 77 | | |||
78 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | ||||
75 | void slideWindow(QWidget *widget, SlideFromLocation location) | 79 | void slideWindow(QWidget *widget, SlideFromLocation location) | ||
76 | { | 80 | { | ||
77 | KWindowSystemPluginWrapper::self().effects()->slideWindow(widget, location); | 81 | slideWindow(widget->effectiveWinId(), location, -1); | ||
78 | } | 82 | } | ||
83 | #endif | ||||
79 | 84 | | |||
80 | QList< QSize > windowSizes(const QList< WId > &ids) | 85 | QList< QSize > windowSizes(const QList< WId > &ids) | ||
81 | { | 86 | { | ||
82 | return KWindowSystemPluginWrapper::self().effects()->windowSizes(ids); | 87 | return KWindowSystemPluginWrapper::self().effects()->windowSizes(ids); | ||
83 | } | 88 | } | ||
84 | 89 | | |||
85 | } | 90 | } |