Fix build with -no-feature-animation

This amends 8eaf01ef81

Pick-to: 6.7
Change-Id: I8e30f232b732b0acb0b6c7070ecfa216fabd64da
Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
bb10
Tasuku Suzuki 2024-01-31 09:31:30 +09:00 committed by Christian Ehrlicher
parent a1f12273b2
commit 2b8a604c40
1 changed files with 2 additions and 0 deletions

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