Better spacing for extreme cases

svn path=/trunk/KDE/kdebase/apps/; revision=687855
This commit is contained in:
Rafael Fernández López 2007-07-14 14:38:39 +00:00
parent 6d858cd70f
commit 255f9c1c95

View file

@ -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());
}
}