mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Better spacing for extreme cases
svn path=/trunk/KDE/kdebase/apps/; revision=687855
This commit is contained in:
parent
6d858cd70f
commit
255f9c1c95
1 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue