summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-10-05 17:31:36 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-10-18 14:41:33 +0200
commit381d6210c2a214df2c4c79a507f42c27b2dcfdec (patch)
tree0058be9ec292ee610d709c520e4e8ca9e597b2a0 /src/gui/kernel
parent3aa6f0b3961322a40f046cfb39a40d118f57216e (diff)
qevent.h: don't include <QPointer>, 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 <volker.hilsheimer@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r--src/gui/kernel/qevent.h2
1 files changed, 1 insertions, 1 deletions
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 <QtCore/qiodevice.h>
#include <QtCore/qlist.h>
#include <QtCore/qnamespace.h>
-#include <QtCore/qpointer.h>
#include <QtCore/qstring.h>
#include <QtCore/qurl.h>
#include <QtCore/qvariant.h>
@@ -34,6 +33,7 @@ QT_BEGIN_NAMESPACE
class QFile;
class QAction;
class QMouseEvent;
+template <typename T> class QPointer;
class QPointerEvent;
class QScreen;
#if QT_CONFIG(shortcut)