From 180b60cc894ad878c5e61a1de2d13e769b2e6def Mon Sep 17 00:00:00 2001 From: Louai Al-Khanji Date: Wed, 2 Dec 2015 10:43:08 -0800 Subject: [PATCH] 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 Reviewed-by: Jens Bache-Wiig --- src/widgets/styles/qfusionstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index 7d15647fe6..92c065e138 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -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));