Skip to content

Commit

Permalink
QFusionStyle/CC_Slider: don't paint tickmarks antialiased
Browse files Browse the repository at this point in the history
They look blurry if we do, paint only the rest antialiased.
Amends 032db29.

Change-Id: I480f10943214f94afa52454de43c3b7f836a6def
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
  • Loading branch information
vohi committed Nov 20, 2024
1 parent 27d7928 commit d8daec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widgets/styles/qfusionstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2687,6 +2687,7 @@ void QFusionStyle::drawComplexControl(ComplexControl control, const QStyleOption
if (option->subControls & SC_SliderTickmarks) {
painter->save();
painter->translate(slider->rect.x(), slider->rect.y());
painter->setRenderHint(QPainter::Antialiasing, false);
painter->setPen(outline);
int tickSize = proxy()->pixelMetric(PM_SliderTickmarkOffset, option, widget);
int available = proxy()->pixelMetric(PM_SliderSpaceAvailable, slider, widget);
Expand Down

0 comments on commit d8daec6

Please sign in to comment.