┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-12-09 18:44:42 +0000
committerPeter Penz <[email protected]>2008-12-09 18:44:42 +0000
commit148282e2d856b47ceb191eeef4c834118c8cdffd (patch)
tree4b2e687356e72aac7ead76f0a4dc4acbc973c79e
parent4e1c5471ef9f49c287b869310f0f8f20fa300a36 (diff)
use a smaller step size when using the scroll wheel
BUG: 177238 svn path=/trunk/KDE/kdebase/apps/; revision=894987
-rw-r--r--src/dolphiniconsview.cpp4
1 files changed, 4 insertions, 0 deletions
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