]> cloud.milkyroute.net Git - dolphin.git/commitdiff
use a smaller step size when using the scroll wheel
authorPeter Penz <peter.penz19@gmail.com>
Tue, 9 Dec 2008 18:44:42 +0000 (18:44 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 9 Dec 2008 18:44:42 +0000 (18:44 +0000)
BUG: 177238

svn path=/trunk/KDE/kdebase/apps/; revision=894987

src/dolphiniconsview.cpp

index 54c6ede8c239bbc760b13a49d0502f823c7fc412..b95de351a8c6abf6812ac375d0651bc7508bf60a 100644 (file)
@@ -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