Fix build with -no-feature-animation

This amends 8eaf01ef818c1b980e2bbce1e8ddd2de638f5028

Change-Id: I8e30f232b732b0acb0b6c7070ecfa216fabd64da
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
(cherry picked from commit 2b8a604c40814fb25db3e02f9a7776cde9bc1c7e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Tasuku Suzuki 2024-01-31 09:31:30 +09:00 committed by Qt Cherry-pick Bot
parent 43de61139e
commit eeede2d800

View File

@ -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<const QObject*, QStyleAnimation*> animations;
#endif // animation