From 1b211758c7e6e8400d2e84d84c936cb1685c22a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Mon, 17 Sep 2007 04:50:47 +0000 Subject: [PATCH] Categories titles and icons are shown at the same distance between them on LTR and RTL languages svn path=/trunk/KDE/kdebase/apps/; revision=713321 --- src/dolphincategorydrawer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dolphincategorydrawer.cpp b/src/dolphincategorydrawer.cpp index 099167b615..aff03dab75 100644 --- a/src/dolphincategorydrawer.cpp +++ b/src/dolphincategorydrawer.cpp @@ -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) {