diff options
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; }; |
