From fa0d60b1ff5a9e9086644aa660b1c38053c5fd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 5 Jul 2023 20:09:11 +0200 Subject: [PATCH] QPlatformWindow: Add missing includes 1. QObject For ifdef Q_OS_UNIX we inherit from QObject but it's not included anywhere, only implicitly defined! This was compiling before because the moc file was compiled together with _another_ moc file that _did_ include QObject. 2. QWindow For QT_DECLARE_NATIVE_INTERFACE we need to have QWindow included. Change-Id: I5fc0c2d52cb23ee0b2a884178e9115b19e77bf41 Reviewed-by: Friedemann Kleint Reviewed-by: Marc Mutz --- src/gui/kernel/qplatformwindow_p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/kernel/qplatformwindow_p.h b/src/gui/kernel/qplatformwindow_p.h index a1c7b75468..7d3f2f641c 100644 --- a/src/gui/kernel/qplatformwindow_p.h +++ b/src/gui/kernel/qplatformwindow_p.h @@ -19,9 +19,11 @@ #include #include #include +#include #if defined(Q_OS_UNIX) #include +#include struct wl_surface; #endif