mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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
This commit is contained in:
parent
b7e3077a9d
commit
1b211758c7
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue