From a44f22a63d6b4af978bba9c2721fb6af9c1f3367 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 7 Dec 2008 14:08:34 +0000 Subject: also implement autoscrolling for horizontally aligned views (e. g. icons view in the column mode) svn path=/trunk/KDE/kdebase/apps/; revision=893894 --- src/dolphinviewautoscroller.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dolphinviewautoscroller.h') diff --git a/src/dolphinviewautoscroller.h b/src/dolphinviewautoscroller.h index c02112b7b..c04e22e28 100644 --- a/src/dolphinviewautoscroller.h +++ b/src/dolphinviewautoscroller.h @@ -49,6 +49,12 @@ private: void triggerAutoScroll(); void stopAutoScroll(); + /** + * Calculates the scroll increment m_scrollInc dependent from + * the cursor position \a cursorPos and the range 0 - \a rangeSize - 1. + */ + void calculateScrollIncrement(int cursorPos, int rangeSize); + private: bool m_rubberBandSelection; int m_scrollInc; -- cgit v1.3