diff options
| author | Peter Penz <[email protected]> | 2011-12-18 15:33:53 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-18 15:38:42 +0100 |
| commit | 45a42d6a4285ae9829c39717d7f8893b36e6df29 (patch) | |
| tree | e682900d8b494ec9d91a8633ca6a25c7f2796648 /src/kitemviews/kitemlistviewanimation_p.h | |
| parent | 36a97150df9b08e7c56bede995c01e4a20a510a5 (diff) | |
Turn off animations if they are globally disabled
Respect the graphicseffect level in the system settings. This will disable
all item-animations if the graphicseffect level is "NoEffect".
The smooth scrolling won't be disabled in this case, but the duration has been
made smaller so that it is not recognized as an animation.
BUG: 289238
FIXED-IN: 4.8.0
Diffstat (limited to 'src/kitemviews/kitemlistviewanimation_p.h')
| -rw-r--r-- | src/kitemviews/kitemlistviewanimation_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistviewanimation_p.h b/src/kitemviews/kitemlistviewanimation_p.h index b3a95a871..ecaa5ff8b 100644 --- a/src/kitemviews/kitemlistviewanimation_p.h +++ b/src/kitemviews/kitemlistviewanimation_p.h @@ -69,6 +69,7 @@ private slots: private: enum { AnimationTypeCount = 4 }; + int m_animationDuration; Qt::Orientation m_scrollOrientation; qreal m_scrollOffset; QHash<QGraphicsWidget*, QPropertyAnimation*> m_animation[AnimationTypeCount]; |
