From eeede2d8009117e5381cab2fad3d21dc47a63b09 Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Wed, 31 Jan 2024 09:31:30 +0900 Subject: [PATCH] Fix build with -no-feature-animation This amends 8eaf01ef818c1b980e2bbce1e8ddd2de638f5028 Change-Id: I8e30f232b732b0acb0b6c7070ecfa216fabd64da Reviewed-by: Christian Ehrlicher (cherry picked from commit 2b8a604c40814fb25db3e02f9a7776cde9bc1c7e) Reviewed-by: Qt Cherry-pick Bot --- src/widgets/styles/qcommonstyle_p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/styles/qcommonstyle_p.h b/src/widgets/styles/qcommonstyle_p.h index 45381ecc9e2..2fa90a8949e 100644 --- a/src/widgets/styles/qcommonstyle_p.h +++ b/src/widgets/styles/qcommonstyle_p.h @@ -96,6 +96,7 @@ public: void startAnimation(QStyleAnimation *animation) const; void stopAnimation(const QObject *target) const; void removeAnimation(const QObject *target) const; +#endif QIcon iconFromWindowsTheme(QCommonStyle::StandardPixmap standardIcon, const QStyleOption *option, @@ -113,6 +114,7 @@ public: return (option && option->direction == Qt::RightToLeft) || (!option && QGuiApplication::isRightToLeft()); } +#if QT_CONFIG(animation) private: mutable QHash animations; #endif // animation