From 381d6210c2a214df2c4c79a507f42c27b2dcfdec Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 5 Oct 2023 17:31:36 +0200 Subject: [PATCH] qevent.h: don't include , fwd-declare it The header uses QPointer in-name-only, so it doesn't need to include the class' header file. A forward-declaration suffices. [ChangeLog][Potentially Source-Incompatible Changes] The headers qevent.h and qfuture.h no longer include the header qpointer.h. Change-Id: I8d3c3b56f5928a0745a523abf5df3b8106dc15ee Reviewed-by: Volker Hilsheimer Reviewed-by: Thiago Macieira Reviewed-by: Qt CI Bot --- src/gui/kernel/qevent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qevent.h b/src/gui/kernel/qevent.h index 900524d218..bf77cc3a73 100644 --- a/src/gui/kernel/qevent.h +++ b/src/gui/kernel/qevent.h @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -34,6 +33,7 @@ QT_BEGIN_NAMESPACE class QFile; class QAction; class QMouseEvent; +template class QPointer; class QPointerEvent; class QScreen; #if QT_CONFIG(shortcut)