┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-11-14 21:57:31 +0000
committerRafael Fernández López <[email protected]>2007-11-14 21:57:31 +0000
commit72dc6a9d229e581eeef26b07108f5883f12b30f0 (patch)
treeac477877fcde9ff5afd629f07a54e542c0855b67 /src
parent2a3035088bff8287fb92fd8dbd93aabe8aaa90d2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/kcategorizedview.cpp2
1 files changed, 2 insertions, 0 deletions
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);