From: Peter Penz Date: Tue, 9 Dec 2008 18:44:42 +0000 (+0000) Subject: use a smaller step size when using the scroll wheel X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/148282e2d856b47ceb191eeef4c834118c8cdffd use a smaller step size when using the scroll wheel BUG: 177238 svn path=/trunk/KDE/kdebase/apps/; revision=894987 --- 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