diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2014-08-11 19:28:23 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-08-13 08:47:54 +0200 |
commit | bf9a4ef8b4210bd1f434828911361008ea2350ec (patch) | |
tree | 1a9c5af5fe1424956da78dea282ff38c7c1c5967 /src/widgets/styles/qcommonstyle_p.h | |
parent | f2c7ea717874664ee4927f500efc244fde585d31 (diff) |
Fix QT_NO_ANIMATION build
Change-Id: Ia589e703206d6ca675a392e634e2a445dcf4cca3
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/styles/qcommonstyle_p.h')
-rw-r--r-- | src/widgets/styles/qcommonstyle_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/styles/qcommonstyle_p.h b/src/widgets/styles/qcommonstyle_p.h index 8f8a97a2dc..1f5d8b8a81 100644 --- a/src/widgets/styles/qcommonstyle_p.h +++ b/src/widgets/styles/qcommonstyle_p.h @@ -77,7 +77,9 @@ public: ~QCommonStylePrivate() { +#ifndef QT_NO_ANIMATION qDeleteAll(animations); +#endif #ifndef QT_NO_ITEMVIEWS delete cachedOption; #endif @@ -114,6 +116,7 @@ public: #endif int animationFps; +#ifndef QT_NO_ANIMATION void _q_removeAnimation(); QList<const QObject*> animationTargets() const; @@ -123,6 +126,7 @@ public: private: mutable QHash<const QObject*, QStyleAnimation*> animations; +#endif // QT_NO_ANIMATION }; QT_END_NAMESPACE |