]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Better spacing for extreme cases
authorRafael Fernández López <ereslibre@kde.org>
Sat, 14 Jul 2007 14:38:39 +0000 (14:38 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Sat, 14 Jul 2007 14:38:39 +0000 (14:38 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=687855

src/kcategorizedview.cpp

index 97045f3830c4200037792ee6d37341b3d4844051..8c1bcad51c5a6d4537d4479efa0ba08296cb89fc 100644 (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());
         }
     }