From 148282e2d856b47ceb191eeef4c834118c8cdffd Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 9 Dec 2008 18:44:42 +0000 Subject: [PATCH] use a smaller step size when using the scroll wheel BUG: 177238 svn path=/trunk/KDE/kdebase/apps/; revision=894987 --- src/dolphiniconsview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 54c6ede8c..b95de351a 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -277,6 +277,10 @@ void DolphinIconsView::wheelEvent(QWheelEvent* event) event->ignore(); return; } + + horizontalScrollBar()->setSingleStep(m_itemSize.width() / 10); + verticalScrollBar()->setSingleStep(m_itemSize.height() / 10); + KCategorizedView::wheelEvent(event); // if the icons are aligned left to right, the vertical wheel event should // be applied to the horizontal scrollbar -- 2.47.3