┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/klistview.cpp
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-06-19 18:52:55 +0000
committerRafael Fernández López <[email protected]>2007-06-19 18:52:55 +0000
commitf9f4dbf005f63d9e1d14acbe21beab6e0fc26b36 (patch)
tree6ee6411e0c9f9c04653dfb0dc5eb7e259ca308e7 /src/klistview.cpp
parent41d6071059f31a8b906cacd2dfe5a802e4b4c0d1 (diff)
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: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=677702
Diffstat (limited to 'src/klistview.cpp')
-rw-r--r--src/klistview.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}