diff options
| author | Rafael Fernández López <[email protected]> | 2007-07-14 14:38:39 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-07-14 14:38:39 +0000 |
| commit | 255f9c1c95d0b73367fe483eef85937cbb6e103e (patch) | |
| tree | 54d783632d825a355b134aa21c5de02819b84bdc | |
| parent | 6d858cd70f4adb08757fb24e69d9cc3a3a713390 (diff) | |
Better spacing for extreme cases
svn path=/trunk/KDE/kdebase/apps/; revision=687855
| -rw-r--r-- | src/kcategorizedview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp index 97045f383..8c1bcad51 100644 --- a/src/kcategorizedview.cpp +++ b/src/kcategorizedview.cpp @@ -213,7 +213,8 @@ QRect KCategorizedView::Private::visualRectInViewport(const QModelIndex &index) { retRect.setTop(retRect.top() + (rowsInt * itemHeight) + - itemCategorizer->categoryHeight(listView->viewOptions())); + itemCategorizer->categoryHeight(listView->viewOptions()) + + listView->spacing()); } } @@ -301,7 +302,8 @@ QRect KCategorizedView::Private::visualCategoryRectInViewport(const QString &cat { retRect.setTop(retRect.top() + (rowsInt * itemHeight) + - itemCategorizer->categoryHeight(listView->viewOptions())); + itemCategorizer->categoryHeight(listView->viewOptions()) + + listView->spacing()); } } |
