From f0e54ea52b3934bbb64b4d43a8c7dcdfd6b50de7 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 5 Jan 2010 17:19:51 +0000 Subject: - Details view and column view: Just use the height as indicator for the scrolling steps when using the wheel. Don't decrease the steps for larger icon sizes. - Icons view: Use slightly larger scrolling steps. BUG: 191418 BUG: 192958 svn path=/trunk/KDE/kdebase/apps/; revision=1070438 --- src/dolphindetailsview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dolphindetailsview.cpp') diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 476ed9a3b..5df105340 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -426,8 +426,7 @@ void DolphinDetailsView::resizeEvent(QResizeEvent* event) void DolphinDetailsView::wheelEvent(QWheelEvent* event) { - const int height = m_decorationSize.height(); - const int step = (height >= KIconLoader::SizeHuge) ? height / 10 : (KIconLoader::SizeHuge - height) / 2; + const int step = m_decorationSize.height(); verticalScrollBar()->setSingleStep(step); QTreeView::wheelEvent(event); } -- cgit v1.3