]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Hooray for perfectionism
authorRafael Fernández López <ereslibre@kde.org>
Mon, 17 Sep 2007 05:17:25 +0000 (05:17 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Mon, 17 Sep 2007 05:17:25 +0000 (05:17 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=713323

src/dolphincategorydrawer.cpp

index 5b2278629ba7cd3951b8ba70ecee2ee37d3ba898..039b395a4553a5e63e60c0de102e7935da31ab13 100644 (file)
@@ -285,8 +285,8 @@ void DolphinCategoryDrawer::drawCategory(const QModelIndex &index, int sortRole,
 
         if (option.direction == Qt::RightToLeft)
         {
 
         if (option.direction == Qt::RightToLeft)
         {
-            textRect.setWidth(textRect.width() - (paintIcon ? iconSize + (iconSize / 4)
-                                                            : 0));
+            textRect.setWidth(textRect.width() - (paintIcon ? iconSize + (iconSize / 2)
+                                                            : -(iconSize / 4)));
         }
 
         painter->drawText(textRect, Qt::AlignVCenter | Qt::AlignLeft,
         }
 
         painter->drawText(textRect, Qt::AlignVCenter | Qt::AlignLeft,