qt5base-lts/tests/auto/gui/painting
Allan Sandfeld Jensen 57469a8e10 Avoid creating a QPixmap on QBrush comparisons
We shouldn't create QPixmaps when comparing QBrushes that do not
contain a QPixmap.

This patch extends the comparison logic to comparing QImage cachekeys
if the brushes are QImage based.

Note the comparison still produces false negatives on equal content on
different pixmaps and images, but this is preserving existing behavior.

Task-number: QTBUG-43766
Change-Id: I001b4032172c1e568aad311f7df2eaae6aee8dc6
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
2015-02-04 22:10:17 +00:00
..
qbrush Avoid creating a QPixmap on QBrush comparisons 2015-02-04 22:10:17 +00:00
qcolor Make it more obvious that Q_WS_ is dead code, and should perhaps be ported 2015-02-03 11:49:14 +00:00
qpagelayout Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpagesize Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpaintengine Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpainter Make it more obvious that Q_WS_ is dead code, and should perhaps be ported 2015-02-03 11:49:14 +00:00
qpainterpath Fix assorted MSVC warnings in tests. 2015-01-17 12:06:59 +01:00
qpainterpathstroker Fix assorted MSVC warnings in tests. 2015-01-17 12:06:59 +01:00
qpathclipper Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
qpdfwriter Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpen Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpolygon Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
qregion Make it more obvious that Q_WS_ is dead code, and should perhaps be ported 2015-02-03 11:49:14 +00:00
qtransform Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
qwmatrix Haiku: Make remaining auto tests compile on Haiku 2015-01-14 05:37:28 +01:00
painting.pro QPdfWriter - Use QPageSize and QPageLayout 2014-03-17 13:45:52 +01:00