diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-04-28 13:48:39 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-05-03 20:53:34 +0200 |
commit | bbff35a343f607fde64a71b651db9f35365e3c67 (patch) | |
tree | ed948759d7453a9619be242704ae6a4ec81c1cf9 /tests/baseline/painting/images/gam200.png | |
parent | ccbff2c08b4506317860019e32d5d906c3a45594 (diff) |
QCommonStyle: Fix painting arrows when size is even
Rework the painting code to not use floating point numbers and make sure
the tip of the arrow is painted with one or two points (depending on the
size is odd or even) so the arrow is always symmetric. Therefore also no
anti-aliasing is needed. Sadly the dpr scaling and also
QPainter::drawPolygon() screw things up a little bit with such small
sizes, therefore do the dpr handling by ourself to get nice results.
Pick-to: 6.7
Fixes: QTBUG-124554
Task-number: QTBUG-114539
Change-Id: I8ab8c2ce3ceb90af5d7c3a0dfeec7f7445e92a4d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/baseline/painting/images/gam200.png')
0 files changed, 0 insertions, 0 deletions