From b7e3077a9d2b6006b9b8edb6b63c42bddb2bd2cc Mon Sep 17 00:00:00 2001 From: Rafael Fernández López Date: Mon, 17 Sep 2007 04:16:29 +0000 Subject: Forgot to adapt to RTL the default category drawer (KCategoryDrawer), since right now it is fully overriden by dolphincategorydrawer. Unneeded commented code removed from the latter svn path=/trunk/KDE/kdebase/apps/; revision=713320 --- src/kcategorydrawer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kcategorydrawer.cpp') diff --git a/src/kcategorydrawer.cpp b/src/kcategorydrawer.cpp index ebe77f4de..4c59864a0 100644 --- a/src/kcategorydrawer.cpp +++ b/src/kcategorydrawer.cpp @@ -82,8 +82,10 @@ void KCategoryDrawer::drawCategory(const QModelIndex &index, QLinearGradient gradient(option.rect.topLeft(), option.rect.bottomRight()); - gradient.setColorAt(0, color); - gradient.setColorAt(1, Qt::transparent); + gradient.setColorAt(option.direction == Qt::LeftToRight ? 0 + : 1, color); + gradient.setColorAt(option.direction == Qt::LeftToRight ? 1 + : 0, Qt::transparent); painter->setBrush(gradient); painter->fillPath(path, gradient); -- cgit v1.3