From f9f4dbf005f63d9e1d14acbe21beab6e0fc26b36 Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Tue, 19 Jun 2007 18:52:55 +0000 Subject: Fix the scrollbar issue. We can live with the setSingleStep nasty workaround for now. Anyway we can adapt it to fit better in the context. CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=677702 --- src/klistview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/klistview.cpp') diff --git a/src/klistview.cpp b/src/klistview.cpp index 7e4259be6..553c4e400 100644 --- a/src/klistview.cpp +++ b/src/klistview.cpp @@ -386,6 +386,9 @@ void KListView::Private::updateScrollbars() { int lastItemBottom = cachedRectIndex(lastIndex).bottom() + listView->spacing() - listView->viewport()->height(); + + listView->verticalScrollBar()->setSingleStep(listView->viewport()->height() / 10); + listView->verticalScrollBar()->setPageStep(listView->viewport()->height()); listView->verticalScrollBar()->setRange(0, lastItemBottom); } -- cgit v1.3