summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qcommonstyle_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2012-10-16 16:35:34 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-17 20:47:08 +0200
commita98b9435579f5abef82036e81af4488d8a464b66 (patch)
treed647030face0d45f51c39f9c56ad77574871f4fe /src/widgets/styles/qcommonstyle_p.h
parent037d1e18e39f24b8ebb2772c20444d4b44cfb12b (diff)
Styles: revise indeterminate progress bar animations
Remove dependencies to QProgressBar where possible. This makes it possible to animate for example QQuickItem based progress bars (read: the desktop components). Change-Id: If208506702365895576238c24191b8d70b90841c Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/widgets/styles/qcommonstyle_p.h')
-rw-r--r--src/widgets/styles/qcommonstyle_p.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/widgets/styles/qcommonstyle_p.h b/src/widgets/styles/qcommonstyle_p.h
index 2032e06e31..8f22dc7b79 100644
--- a/src/widgets/styles/qcommonstyle_p.h
+++ b/src/widgets/styles/qcommonstyle_p.h
@@ -77,9 +77,7 @@ public:
~QCommonStylePrivate()
{
-#ifndef QT_NO_ANIMATION
qDeleteAll(animations);
-#endif
#ifndef QT_NO_ITEMVIEWS
delete cachedOption;
#endif
@@ -120,11 +118,11 @@ public:
QList<const QObject*> animationTargets() const;
QStyleAnimation* animation(const QObject *target) const;
- void startAnimation(QStyleAnimation *animation);
- void stopAnimation(const QObject *target);
+ void startAnimation(QStyleAnimation *animation) const;
+ void stopAnimation(const QObject *target) const;
private:
- QHash<const QObject*, QStyleAnimation*> animations;
+ mutable QHash<const QObject*, QStyleAnimation*> animations;
};
QT_END_NAMESPACE