diff options
Diffstat (limited to 'src/kcategorizedview.cpp')
| -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()); } } |
