From 85c31d976fd4ea611f03b18372f57130c16f9c34 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 30 Dec 2021 10:38:45 +0100 Subject: [PATCH] QAbstractAnimation: add missing forward-declaration QUnifiedTimer is declared as a friend using an unqualified name that hasn't been forward-declared before. In this situation, the friend declaration declares the name. This is subtle, and while it's ok here, in other situations it can actually lead to two different names being declared. Fix by adding the missing forward declaration. Pick-to: 6.3 6.2 5.15 Change-Id: Ie9f5165578f1d88c6bee1afa23ef43847755a0eb Reviewed-by: Volker Hilsheimer --- src/corelib/animation/qabstractanimation.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/animation/qabstractanimation.h b/src/corelib/animation/qabstractanimation.h index 3165c2b049..fda0f7d4c4 100644 --- a/src/corelib/animation/qabstractanimation.h +++ b/src/corelib/animation/qabstractanimation.h @@ -49,6 +49,7 @@ QT_BEGIN_NAMESPACE class QAnimationGroup; class QSequentialAnimationGroup; class QAnimationDriver; +class QUnifiedTimer; class QAbstractAnimationPrivate; class Q_CORE_EXPORT QAbstractAnimation : public QObject