From c91c770ef1a60e7966048ece0ebfe861c8b288d1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 13 Dec 2008 15:29:42 +0000 Subject: provide separate scroll increments for the horizontal and vertical scrolling svn path=/trunk/KDE/kdebase/apps/; revision=896466 --- src/dolphinviewautoscroller.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/dolphinviewautoscroller.h') diff --git a/src/dolphinviewautoscroller.h b/src/dolphinviewautoscroller.h index f0f57049b..6ef6631f7 100644 --- a/src/dolphinviewautoscroller.h +++ b/src/dolphinviewautoscroller.h @@ -50,14 +50,15 @@ private: void stopAutoScroll(); /** - * Calculates the scroll increment m_scrollInc dependent from + * Calculates the scroll increment dependent from * the cursor position \a cursorPos and the range 0 - \a rangeSize - 1. */ - void calculateScrollIncrement(int cursorPos, int rangeSize); + int calculateScrollIncrement(int cursorPos, int rangeSize) const; private: bool m_rubberBandSelection; - int m_scrollInc; + int m_horizontalScrollInc; + int m_verticalScrollInc; QAbstractItemView* m_itemView; QTimer* m_timer; }; -- cgit v1.3