Reduce headers inter-dependency in the QPA plugin
Change-Id: I8b810e54531453b6a80250555c21bb0b1e6e76cc Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
2de0e4fe4e
commit
43cd8c4fe7
@ -45,6 +45,7 @@
|
||||
#include "qwaylanddatasource_p.h"
|
||||
#include "qwaylanddnd_p.h"
|
||||
#include "qwaylandinputdevice_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <QtCore/QMimeData>
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
@ -41,15 +41,21 @@
|
||||
#ifndef QWAYLANDDATADEVICE_H
|
||||
#define QWAYLANDDATADEVICE_H
|
||||
|
||||
#include "qwaylanddisplay_p.h"
|
||||
#include <QObject>
|
||||
#include <QPoint>
|
||||
|
||||
#include <QtWaylandClient/private/qwayland-wayland.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
class QMimeData;
|
||||
class QWaylandDataDeviceManager;
|
||||
class QWaylandDataOffer;
|
||||
class QWaylandDataSource;
|
||||
class QWindow;
|
||||
class QWaylandInputDevice;
|
||||
class QWaylandWindow;
|
||||
|
||||
class QWaylandDataDevice : public QObject, public QtWayland::wl_data_device
|
||||
{
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include "qwaylandinputdevice_p.h"
|
||||
#include "qwaylanddatadevice_p.h"
|
||||
#include "qwaylanddataoffer_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
|
@ -42,12 +42,15 @@
|
||||
#ifndef QWAYLANDDATADEVICEMANAGER_H
|
||||
#define QWAYLANDDATADEVICEMANAGER_H
|
||||
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
#include <QtWaylandClient/private/qwayland-wayland.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
class QWaylandDataDevice;
|
||||
class QWaylandDataSource;
|
||||
class QWaylandInputDevice;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandDataDeviceManager : public QtWayland::wl_data_device_manager
|
||||
{
|
||||
|
@ -41,6 +41,7 @@
|
||||
|
||||
#include "qwaylanddataoffer_p.h"
|
||||
#include "qwaylanddatadevicemanager_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <QtCore/private/qcore_unix_p.h>
|
||||
#include <QtGui/private/qguiapplication_p.h>
|
||||
|
@ -42,10 +42,11 @@
|
||||
#ifndef QWAYLANDDATAOFFER_H
|
||||
#define QWAYLANDDATAOFFER_H
|
||||
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <QtGui/private/qdnd_p.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
#include <QtWaylandClient/private/qwayland-wayland.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
|
@ -42,14 +42,16 @@
|
||||
#ifndef QWAYLANDDATASOURCE_H
|
||||
#define QWAYLANDDATASOURCE_H
|
||||
|
||||
#include <QtWaylandClient/private/qwaylanddatadevicemanager_p.h>
|
||||
#include <QObject>
|
||||
|
||||
#include <QtWaylandClient/private/wayland-wayland-client-protocol.h>
|
||||
#include <QtWaylandClient/private/qwayland-wayland.h>
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QMimeData;
|
||||
class QWaylandDataDeviceManager;
|
||||
class QWaylandDisplay;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandDataSource : public QObject, public QtWayland::wl_data_source
|
||||
{
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include "qwaylanddatadevicemanager_p.h"
|
||||
#include "qwaylanddataoffer_p.h"
|
||||
#include "qwaylandinputdevice_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <QtGui/private/qshapedpixmapdndwindow_p.h>
|
||||
|
||||
|
@ -47,10 +47,13 @@
|
||||
|
||||
#include <QtGui/QDrag>
|
||||
#include <QtCore/QMimeData>
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandDrag : public QBasicDrag
|
||||
{
|
||||
public:
|
||||
|
@ -42,11 +42,13 @@
|
||||
#ifndef QWAYLANDEXTENDEDOUTPUT_H
|
||||
#define QWAYLANDEXTENDEDOUTPUT_H
|
||||
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
#include <QtWaylandClient/private/qwayland-output-extension.h>
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
class QWaylandScreen;
|
||||
class QWaylandExtendedOutput;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandExtendedOutput : public QtWayland::qt_extended_output
|
||||
|
@ -49,6 +49,7 @@
|
||||
#include "qwaylandtouch_p.h"
|
||||
#include "qwaylandscreen_p.h"
|
||||
#include "qwaylandcursor_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <QtGui/private/qpixmap_raster_p.h>
|
||||
#include <qpa/qplatformwindow.h>
|
||||
|
@ -46,6 +46,7 @@
|
||||
#include "qwaylandintegration_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
#include "qwaylandwindowmanagerintegration_p.h"
|
||||
#include "qwaylandscreen_p.h"
|
||||
#include <QtGui/private/qguiapplication_p.h>
|
||||
#include <QtGui/QScreen>
|
||||
|
||||
|
@ -42,13 +42,15 @@
|
||||
#ifndef QWAYLANDNATIVEINTERFACE_H
|
||||
#define QWAYLANDNATIVEINTERFACE_H
|
||||
|
||||
#include <QtWaylandClient/private/qwaylandscreen_p.h>
|
||||
#include <QVariantMap>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandIntegration;
|
||||
class QWaylandScreen;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandNativeInterface : public QPlatformNativeInterface
|
||||
{
|
||||
|
@ -41,6 +41,7 @@
|
||||
|
||||
#include "qwaylandqtkey_p.h"
|
||||
#include "qwaylandinputdevice_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -42,13 +42,15 @@
|
||||
#ifndef QWAYLANDQTKEY_H
|
||||
#define QWAYLANDQTKEY_H
|
||||
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
#include <QtWaylandClient/private/qwayland-qtkey-extension.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandQtKeyExtension : public QtWayland::qt_key_extension
|
||||
{
|
||||
public:
|
||||
|
@ -290,6 +290,24 @@ void QWaylandShmBackingStore::updateDecorations()
|
||||
decorationPainter.drawImage(target, sourceImage, target);
|
||||
}
|
||||
|
||||
QWaylandDecoration *QWaylandShmBackingStore::windowDecoration() const
|
||||
{
|
||||
return waylandWindow()->decoration();
|
||||
}
|
||||
|
||||
QMargins QWaylandShmBackingStore::windowDecorationMargins() const
|
||||
{
|
||||
if (windowDecoration())
|
||||
return windowDecoration()->margins();
|
||||
return QMargins();
|
||||
}
|
||||
|
||||
QWaylandShmWindow *QWaylandShmBackingStore::waylandWindow() const
|
||||
{
|
||||
return static_cast<QWaylandShmWindow *>(window()->handle());
|
||||
}
|
||||
|
||||
|
||||
void QWaylandShmBackingStore::done(void *data, wl_callback *callback, uint32_t time)
|
||||
{
|
||||
Q_UNUSED(time);
|
||||
|
@ -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
|
||||
|
@ -41,6 +41,7 @@
|
||||
|
||||
#include "qwaylandtouch_p.h"
|
||||
#include "qwaylandinputdevice_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -42,13 +42,16 @@
|
||||
#ifndef QWAYLANDTOUCH_H
|
||||
#define QWAYLANDTOUCH_H
|
||||
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
#include <qpa/qwindowsysteminterface.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwayland-touch-extension.h>
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandDisplay;
|
||||
class QWaylandInputDevice;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandTouchExtension : public QtWayland::qt_touch_extension
|
||||
{
|
||||
public:
|
||||
|
@ -48,9 +48,8 @@
|
||||
|
||||
#include <qpa/qplatformwindow.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwayland-wayland.h>
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
struct wl_egl_window;
|
||||
|
||||
@ -62,6 +61,8 @@ class QWaylandShellSurface;
|
||||
class QWaylandExtendedSurface;
|
||||
class QWaylandSubSurface;
|
||||
class QWaylandDecoration;
|
||||
class QWaylandInputDevice;
|
||||
class QWaylandScreen;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandWindowConfigure
|
||||
{
|
||||
|
@ -42,6 +42,7 @@
|
||||
#include "qwaylandwindowmanagerintegration_p.h"
|
||||
#include "qwaylandscreen_p.h"
|
||||
#include "qwaylandwindow_p.h"
|
||||
#include "qwaylanddisplay_p.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <QtCore/QEvent>
|
||||
|
@ -46,14 +46,16 @@
|
||||
#include <QtCore/QScopedPointer>
|
||||
|
||||
#include <wayland-client.h>
|
||||
#include <QtWaylandClient/private/qwaylanddisplay_p.h>
|
||||
#include <qpa/qplatformservices.h>
|
||||
|
||||
#include <QtWaylandClient/private/qwayland-windowmanager.h>
|
||||
#include <QtWaylandClient/private/qwaylandclientexport_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QWaylandWindow;
|
||||
class QWaylandDisplay;
|
||||
|
||||
class QWaylandWindowManagerIntegrationPrivate;
|
||||
|
||||
class Q_WAYLAND_CLIENT_EXPORT QWaylandWindowManagerIntegration : public QObject, public QPlatformServices, public QtWayland::qt_windowmanager
|
||||
|
Loading…
x
Reference in New Issue
Block a user