diff options
| author | Peter Penz <[email protected]> | 2008-12-07 14:08:34 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-07 14:08:34 +0000 |
| commit | a44f22a63d6b4af978bba9c2721fb6af9c1f3367 (patch) | |
| tree | a26b0455fc690f7860db56c5520c4fe1cb4bbd2b /src/dolphinviewautoscroller.h | |
| parent | 3c4c6319cf5bdfdcdb63b66c5304fc09e5125540 (diff) | |
also implement autoscrolling for horizontally aligned views (e. g. icons view in the column mode)
svn path=/trunk/KDE/kdebase/apps/; revision=893894
Diffstat (limited to 'src/dolphinviewautoscroller.h')
| -rw-r--r-- | src/dolphinviewautoscroller.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |
