path: root/src
diff options
authorTimur Pocheptsov <>2019-07-26 09:30:01 +0200
committerTimur Pocheptsov <>2019-07-26 15:12:17 +0200
commit5b3c09e35f71b5d848ee7554517d95deb9b577c7 (patch)
treec5549426acb84029715eef003b27f66d92fb01be /src
parent698faf7b6de08bed2aa7e345982cedd907353e11 (diff)
QMacStyle - another slider fix
As a follow-up to fixed resize handling: the trick Gabriel wanted to use to enforce a specific look on a slider's bar, never actually worked due to misplaced statement which essentially is cancelling the 'magic' before the bar is drawn. Now it's fixed: bar is centered (between the rows of tickmarks above and below) + it's had a nice blue filling back! Change-Id: I3021c2b86e4c25981eeee015e32baa24ccebc3bd Reviewed-by: Volker Hilsheimer <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/styles/mac/ b/src/plugins/styles/mac/
index 1d88d2c647..1ff1c22788 100644
--- a/src/plugins/styles/mac/
+++ b/src/plugins/styles/mac/
@@ -5362,10 +5362,10 @@ void QMacStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex
const CGRect barRect = [cell barRectFlipped:hasTicks];
if (drawBar) {
+ [cell drawBarInside:barRect flipped:!verticalFlip];
// This ain't HIG kosher: force unfilled bar look.
if (hasDoubleTicks)
slider.numberOfTickMarks = numberOfTickMarks;
- [cell drawBarInside:barRect flipped:!verticalFlip];
if (hasTicks && drawTicks) {