]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix the scrollbar issue. We can live with the setSingleStep nasty workaround for...
authorRafael Fernández López <ereslibre@kde.org>
Tue, 19 Jun 2007 18:52:55 +0000 (18:52 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Tue, 19 Jun 2007 18:52:55 +0000 (18:52 +0000)
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=677702

src/klistview.cpp

index 7e4259be66ee8be48c937db245187249a9c17cc0..553c4e400c3e31f99e3474f6115c869b4ebadb2d 100644 (file)
@@ -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);
 }