From 7fbc814147ed8d1e5f0b1677fc8808c3c2b6c22c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 13 Dec 2008 15:39:09 +0000 Subject: only jump automatically to the current index, if the autoscrolling is not active svn path=/trunk/KDE/kdebase/apps/; revision=896481 --- src/dolphinviewautoscroller.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/dolphinviewautoscroller.cpp') diff --git a/src/dolphinviewautoscroller.cpp b/src/dolphinviewautoscroller.cpp index 767a5b458..2a57cc157 100644 --- a/src/dolphinviewautoscroller.cpp +++ b/src/dolphinviewautoscroller.cpp @@ -48,6 +48,11 @@ DolphinViewAutoScroller::~DolphinViewAutoScroller() { } +bool DolphinViewAutoScroller::isActive() const +{ + return m_timer->isActive(); +} + bool DolphinViewAutoScroller::eventFilter(QObject* watched, QEvent* event) { if (watched == m_itemView->viewport()) { -- cgit v1.3