qt5base-lts/tests/auto/gui/painting
Samuel Rødal 7b8e10ddd0 Fixed inconsistent QPainter fill rules for aliased painting.
Qt 5 is the time to get rid of all the old inconsistencies in the raster
paint engine caused by trying to preserve the old X11 based
coordinate system where (0, 0) is in the center of the top-left pixel
instead of the upper left corner of said pixel. However, this was only
adhered for line drawing and path / rect filling, and not for image or
pixmap drawing and not at all when doing antialiased painting. By
defining the antialiased coordinate system as being the right one and
letting the aliased fill rules follow from that we finally end up with
some consistent behavior that doesn't lead to surprises and workarounds
in application code.

It is still possible for applications to get the old behavior by
setting the QPainter::Qt4CompatiblePainting render hint. This should
make porting easier for the few cases where an application relies on the
aliased fill rules we used to have in Qt 4.

Task-number: QTBUG-27500
Change-Id: If86b95e77d838ec83033d64af86632b9a73c74a9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2012-10-19 02:43:05 +02:00
..
qbrush Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qcolor Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpaintengine Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpainter Fixed inconsistent QPainter fill rules for aliased painting. 2012-10-19 02:43:05 +02:00
qpainterpath Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpainterpathstroker Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpathclipper Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpen Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qpolygon Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qregion Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtransform Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qwmatrix Test: Enable tst_QWMatrix::operator_star_qwmatrix 2012-09-27 21:13:52 +02:00
painting.pro Move tst_qprinter.cpp to QtPrintSupport 2012-03-12 13:14:05 +01:00