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 <volker.hilsheimer@qt.io>
This commit is contained in:
parent
698faf7b6d
commit
5b3c09e35f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user