From f9f4dbf005f63d9e1d14acbe21beab6e0fc26b36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Tue, 19 Jun 2007 18:52:55 +0000 Subject: [PATCH] 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(+) 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); } -- 2.47.3