From b904780f0eb949d3ac6153935a9d4155097456f8 Mon Sep 17 00:00:00 2001
From: Jens Bache-Wiig <jbache@trolltech.com>
Date: Mon, 5 Jan 2009 11:58:38 +0100
Subject: [PATCH] Fixes:    Fix painting of tabrect with -reverse Details:
 Still not perfect due to inverted gradients, but much better.

---
 src/plugins/coreplugin/fancytabwidget.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/plugins/coreplugin/fancytabwidget.cpp b/src/plugins/coreplugin/fancytabwidget.cpp
index c24e551c77e..ccf9c92322c 100644
--- a/src/plugins/coreplugin/fancytabwidget.cpp
+++ b/src/plugins/coreplugin/fancytabwidget.cpp
@@ -323,6 +323,7 @@ void FancyTabWidget::paintEvent(QPaintEvent *event)
     QPainter p(this);
 
     QRect rect = m_selectionWidget->rect().adjusted(0, 0, 1, 0);
+    rect = style()->visualRect(layoutDirection(), geometry(), rect);
     StyleHelper::verticalGradient(&p, rect, rect);
     p.setPen(StyleHelper::borderColor());
     p.drawLine(rect.topRight(), rect.bottomRight());
-- 
GitLab