From: Rafael Fernández López Date: Wed, 14 Nov 2007 21:57:31 +0000 (+0000) Subject: Fixes the small problem: X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/72dc6a9d229e581eeef26b07108f5883f12b30f0 Fixes the small problem: * Left to Right arrangement * Elements enough to be needed an horizontal scroll bar with categorized view disabled * Enable categorized view * Horizontal scrollbar still visible Now it is hidden, because the way KCategorizedView shows items is not needed. svn path=/trunk/KDE/kdebase/apps/; revision=736809 --- diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 7d717abd1..4f542f9c7 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -390,6 +390,8 @@ void KCategorizedView::Private::updateScrollbars() int lastItemBottom = cachedRectIndex(lastIndex).top() + listView->spacing() + (listView->gridSize().isEmpty() ? 0 : listView->gridSize().height()) - listView->viewport()->height(); + listView->horizontalScrollBar()->setRange(0, 0); + listView->verticalScrollBar()->setSingleStep(listView->viewport()->height() / 10); listView->verticalScrollBar()->setPageStep(listView->viewport()->height()); listView->verticalScrollBar()->setRange(0, lastItemBottom);