mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fix small adjustments with items-categories
svn path=/trunk/KDE/kdebase/apps/; revision=687902
This commit is contained in:
parent
255f9c1c95
commit
8fb2f40f9c
1 changed files with 12 additions and 22 deletions
|
@ -201,20 +201,15 @@ QRect KCategorizedView::Private::visualRectInViewport(const QModelIndex &index)
|
|||
|
||||
if (rows - trunc(rows)) rowsInt++;
|
||||
|
||||
retRect.setTop(retRect.top() +
|
||||
(rowsInt * itemHeight) +
|
||||
itemCategorizer->categoryHeight(listView->viewOptions()) +
|
||||
listView->spacing() * 2);
|
||||
|
||||
if (listView->gridSize().isEmpty())
|
||||
{
|
||||
retRect.setTop(retRect.top() +
|
||||
(rowsInt * listView->spacing()) +
|
||||
(rowsInt * itemHeight) +
|
||||
itemCategorizer->categoryHeight(listView->viewOptions()) +
|
||||
listView->spacing() * 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
retRect.setTop(retRect.top() +
|
||||
(rowsInt * itemHeight) +
|
||||
itemCategorizer->categoryHeight(listView->viewOptions()) +
|
||||
listView->spacing());
|
||||
(rowsInt * listView->spacing()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -290,20 +285,15 @@ QRect KCategorizedView::Private::visualCategoryRectInViewport(const QString &cat
|
|||
|
||||
if (rows - trunc(rows)) rowsInt++;
|
||||
|
||||
retRect.setTop(retRect.top() +
|
||||
(rowsInt * itemHeight) +
|
||||
itemCategorizer->categoryHeight(listView->viewOptions()) +
|
||||
listView->spacing() * 2);
|
||||
|
||||
if (listView->gridSize().isEmpty())
|
||||
{
|
||||
retRect.setTop(retRect.top() +
|
||||
(rowsInt * listView->spacing()) +
|
||||
(rowsInt * itemHeight) +
|
||||
itemCategorizer->categoryHeight(listView->viewOptions()) +
|
||||
listView->spacing() * 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
retRect.setTop(retRect.top() +
|
||||
(rowsInt * itemHeight) +
|
||||
itemCategorizer->categoryHeight(listView->viewOptions()) +
|
||||
listView->spacing());
|
||||
(rowsInt * listView->spacing()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue