Skip to content
Snippets Groups Projects
Commit b904780f authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fixes: Fix painting of tabrect with -reverse

Details:
Still not perfect due to inverted gradients, but much better.
parent 17722a6c
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment