From 5327bae6f09ce94af9131d26b9e35e2b874b7a69 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 10 Jan 2022 09:20:16 +0100 Subject: [PATCH] QEventPoint: forward-declare QMutableEventPoint before befriending it Otherwise the friend declaration declares the name, which here is ok, but can cause duplicate names in other situations. Pick-to: 6.3 6.2 Change-Id: I695f9c5c116b90ba52e1b99e15f31e732e63d357 Reviewed-by: Volker Hilsheimer Reviewed-by: Shawn Rutledge --- src/gui/kernel/qeventpoint.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/kernel/qeventpoint.h b/src/gui/kernel/qeventpoint.h index 52b5c26039..fbcdc20193 100644 --- a/src/gui/kernel/qeventpoint.h +++ b/src/gui/kernel/qeventpoint.h @@ -50,6 +50,7 @@ QT_BEGIN_NAMESPACE class QEventPointPrivate; QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QEventPointPrivate, Q_GUI_EXPORT) +class QMutableEventPoint; class Q_GUI_EXPORT QEventPoint {