diff options
| author | Aleix Pol Gonzalez <[email protected]> | 2007-12-27 12:57:04 +0000 |
|---|---|---|
| committer | Aleix Pol Gonzalez <[email protected]> | 2007-12-27 12:57:04 +0000 |
| commit | 4391635b5dcc7470cbd35d9651282696747ce764 (patch) | |
| tree | a24e6f1102e46fb241c9df02a6567bde8dd67772 /src/kcategorizedview.cpp | |
| parent | 3cd333e663a58b5780925f4443b1a77e018893d4 (diff) | |
Get the biggest item size for recalculating scrollbar size.
This patch was made by ereslibre, I'm commiting it because he is kind of offline.
svn path=/trunk/KDE/kdebase/apps/; revision=753426
Diffstat (limited to 'src/kcategorizedview.cpp')
| -rw-r--r-- | src/kcategorizedview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 125316cbc..b2504a14b 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -396,7 +396,7 @@ void KCategorizedView::Private::updateScrollbars() QModelIndex lastIndex = categoriesIndexes.isEmpty() ? QModelIndex() : categoriesIndexes[categories.last()].last(); int lastItemBottom = cachedRectIndex(lastIndex).top() + - listView->spacing() + (listView->gridSize().isEmpty() ? cachedRectIndex(lastIndex).height() : listView->gridSize().height()) - listView->viewport()->height(); + listView->spacing() + (listView->gridSize().isEmpty() ? biggestItemSize.height() : listView->gridSize().height()) - listView->viewport()->height(); listView->horizontalScrollBar()->setRange(0, 0); |
