From 45a42d6a4285ae9829c39717d7f8893b36e6df29 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 18 Dec 2011 15:33:53 +0100 Subject: 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 --- src/kitemviews/kitemlistsmoothscroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kitemviews/kitemlistsmoothscroller.cpp') diff --git a/src/kitemviews/kitemlistsmoothscroller.cpp b/src/kitemviews/kitemlistsmoothscroller.cpp index 5c1bf3c5a..d966920cb 100644 --- a/src/kitemviews/kitemlistsmoothscroller.cpp +++ b/src/kitemviews/kitemlistsmoothscroller.cpp @@ -35,7 +35,7 @@ KItemListSmoothScroller::KItemListSmoothScroller(QScrollBar* scrollBar, m_animation(0) { m_animation = new QPropertyAnimation(this); - m_animation->setDuration(300); + m_animation->setDuration(200); connect(m_animation, SIGNAL(stateChanged(QAbstractAnimation::State,QAbstractAnimation::State)), this, SLOT(slotAnimationStateChanged(QAbstractAnimation::State,QAbstractAnimation::State))); -- cgit v1.3