diff options
| author | Peter Penz <[email protected]> | 2008-12-13 15:29:42 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-13 15:29:42 +0000 |
| commit | c91c770ef1a60e7966048ece0ebfe861c8b288d1 (patch) | |
| tree | bb0c125046b8cd32c32122fffd1ef5d630df6024 /src/dolphinviewautoscroller.h | |
| parent | d0c97573d4cee67974758349ddcfc2fee509785d (diff) | |
provide separate scroll increments for the horizontal and vertical scrolling
svn path=/trunk/KDE/kdebase/apps/; revision=896466
Diffstat (limited to 'src/dolphinviewautoscroller.h')
| -rw-r--r-- | src/dolphinviewautoscroller.h | 7 |
1 files changed, 4 insertions, 3 deletions
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; }; |
