QFusionStyle: Fix subtle groove painting
While investigating an unrelated rendering bug I noticed that the call to drawRect here is essentially dead code. However, the original intent seems to have been to draw a very subtle shadow within the scrollbar groove, so let's re-enable it. Subjectively, it does add a nice touch, especially with higher dpi screens. Change-Id: Iebffe69ecf9c26be617f7e85bd95f85ed7b0fafe Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Jens Bache-Wiig <jensbw@gmail.com>bb10
parent
bb747268ed
commit
180b60cc89
|
|
@ -2572,7 +2572,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
|
|||
|
||||
QColor subtleEdge = alphaOutline;
|
||||
subtleEdge.setAlpha(40);
|
||||
painter->setPen(Qt::NoPen);
|
||||
painter->setPen(subtleEdge);
|
||||
painter->setBrush(Qt::NoBrush);
|
||||
painter->setClipRect(scrollBarGroove.adjusted(1, 0, -1, -3));
|
||||
painter->drawRect(scrollBarGroove.adjusted(1, 0, -1, -1));
|
||||
|
|
|
|||
Loading…
Reference in New Issue