]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixes the small problem:
authorRafael Fernández López <ereslibre@kde.org>
Wed, 14 Nov 2007 21:57:31 +0000 (21:57 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Wed, 14 Nov 2007 21:57:31 +0000 (21:57 +0000)
* 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

src/kcategorizedview.cpp

index 7d717abd1f4388319486c27e71cb8a698bac820c..4f542f9c7fc0e12849f0633d1dbe0a27f316b4f1 100644 (file)
@@ -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);