From d7b02e8cbf82a73101fafed614a333955fa93bc9 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Fri, 10 Sep 2021 12:53:22 +0200 Subject: [PATCH] Move QWINDOWSIZE_MAX to platform headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QWINDOWSIZE_MAX is needed to implement platform plugins and Wayland shell integrations. Moving the #define from qwindow_p.h to qplatformwindow.h makes it available from a supported header file. This should not break anything, since qwindow_p.h includes qplatformwindow.h Change-Id: Ie003b1e9d6494695057d59aba5a17ad7fd51c654 Reviewed-by: Tor Arne Vestbø --- src/gui/kernel/qplatformwindow.h | 1 + src/gui/kernel/qwindow_p.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/kernel/qplatformwindow.h b/src/gui/kernel/qplatformwindow.h index cd621b76364..1c5946dd3cd 100644 --- a/src/gui/kernel/qplatformwindow.h +++ b/src/gui/kernel/qplatformwindow.h @@ -60,6 +60,7 @@ QT_BEGIN_NAMESPACE +#define QWINDOWSIZE_MAX ((1<<24)-1) class QPlatformScreen; class QPlatformWindowPrivate; diff --git a/src/gui/kernel/qwindow_p.h b/src/gui/kernel/qwindow_p.h index 82d4bd430ce..fef8b4ca727 100644 --- a/src/gui/kernel/qwindow_p.h +++ b/src/gui/kernel/qwindow_p.h @@ -62,8 +62,6 @@ QT_BEGIN_NAMESPACE -#define QWINDOWSIZE_MAX ((1<<24)-1) - class Q_GUI_EXPORT QWindowPrivate : public QObjectPrivate { Q_DECLARE_PUBLIC(QWindow)