diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2014-06-16 10:37:37 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-06-16 14:04:02 +0200 |
commit | aa16e0f762e2c5e5a6321e5ce8e9014ecb19be7d (patch) | |
tree | e0b76688e2fe3d6f25f3e083b3c69b4d2a6a357f /src/client/qwaylandshmbackingstore_p.h | |
parent | b564681db53593fbbb97ed1dfbe165d66cde6bdc (diff) |
Reduce headers inter-dependency in the QPA plugin
Change-Id: I8b810e54531453b6a80250555c21bb0b1e6e76cc
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/client/qwaylandshmbackingstore_p.h')
-rw-r--r-- | src/client/qwaylandshmbackingstore_p.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/client/qwaylandshmbackingstore_p.h b/src/client/qwaylandshmbackingstore_p.h index 1affafabc..6097b5282 100644 --- a/src/client/qwaylandshmbackingstore_p.h +++ b/src/client/qwaylandshmbackingstore_p.h @@ -44,9 +44,6 @@ #include <QtWaylandClient/private/qwaylandbuffer_p.h> -#include <QtWaylandClient/private/qwaylanddecoration_p.h> -#include <QtWaylandClient/private/qwaylandshmwindow_p.h> - #include <qpa/qplatformbackingstore.h> #include <QtGui/QImage> #include <qpa/qplatformwindow.h> @@ -54,6 +51,8 @@ QT_BEGIN_NAMESPACE class QWaylandDisplay; +class QWaylandDecoration; +class QWaylandShmWindow; class Q_WAYLAND_CLIENT_EXPORT QWaylandShmBuffer : public QWaylandBuffer { public: @@ -112,23 +111,6 @@ private: struct wl_callback *mFrameCallback; }; -inline QWaylandDecoration *QWaylandShmBackingStore::windowDecoration() const -{ - return waylandWindow()->decoration(); -} - -inline QMargins QWaylandShmBackingStore::windowDecorationMargins() const -{ - if (windowDecoration()) - return windowDecoration()->margins(); - return QMargins(); -} - -inline QWaylandShmWindow *QWaylandShmBackingStore::waylandWindow() const -{ - return static_cast<QWaylandShmWindow *>(window()->handle()); -} - QT_END_NAMESPACE #endif |