]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Categories titles and icons are shown at the same distance between them on LTR and...
authorRafael Fernández López <ereslibre@kde.org>
Mon, 17 Sep 2007 04:50:47 +0000 (04:50 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Mon, 17 Sep 2007 04:50:47 +0000 (04:50 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=713321

src/dolphincategorydrawer.cpp

index 099167b6158d7e5414994195749bc181d41304e4..aff03dab75ed8e79be753c72768ad9873eacfd84 100644 (file)
@@ -264,12 +264,16 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole,
 
     if (paintIcon) {
         painter->drawPixmap(QRect(option.direction == Qt::LeftToRight ? opt.rect.left()
-                                                                      : opt.rect.right() - iconSize, opt.rect.top(), iconSize, iconSize), icon);
+                                                                      : opt.rect.right() - iconSize + (iconSize / 4), opt.rect.top(), iconSize, iconSize), icon);
 
         if (option.direction == Qt::LeftToRight)
         {
             opt.rect.setLeft(opt.rect.left() + iconSize + (iconSize / 4));
         }
+        else
+        {
+            opt.rect.setRight(opt.rect.right() + (iconSize / 4));
+        }
     }
 
     if (paintText) {