Move QWINDOWSIZE_MAX to platform headers

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ø <tor.arne.vestbo@qt.io>
This commit is contained in:
Paul Olav Tvete 2021-09-10 12:53:22 +02:00
parent b8191f41c6
commit d7b02e8cbf
2 changed files with 1 additions and 2 deletions

View File

@ -60,6 +60,7 @@
QT_BEGIN_NAMESPACE
#define QWINDOWSIZE_MAX ((1<<24)-1)
class QPlatformScreen;
class QPlatformWindowPrivate;

View File

@ -62,8 +62,6 @@
QT_BEGIN_NAMESPACE
#define QWINDOWSIZE_MAX ((1<<24)-1)
class Q_GUI_EXPORT QWindowPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QWindow)