From: Rafael Fernández López Date: Tue, 19 Jun 2007 18:52:55 +0000 (+0000) Subject: Fix the scrollbar issue. We can live with the setSingleStep nasty workaround for... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/f9f4dbf005f63d9e1d14acbe21beab6e0fc26b36?ds=inline 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 --- 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); }