qt5base-lts/tests/auto/gui
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
..
image Make it more obvious that Q_WS_ is dead code, and should perhaps be ported 2015-02-03 11:49:14 +00:00
itemmodels Update license headers and add new license files 2014-09-24 12:26:19 +02:00
kernel Merge remote-tracking branch 'origin/5.4' into dev 2014-12-29 16:37:38 +01:00
math3d Introduce QQuaternion::inverted() 2015-01-28 12:37:50 +00:00
painting Avoid creating a QPixmap on QBrush comparisons 2015-02-04 22:10:17 +00:00
qopengl Support Alpha8 and Grayscale8 natively in the OpenGL paint engine 2014-10-27 11:54:39 +01:00
text Deprecate QFont:: rawMode()/setRawMode() 2015-01-23 14:06:03 +01:00
util Observe QLocale::RejectGroupSeparator in QInt/DoubleValidator. 2014-11-20 16:38:23 +01:00
gui.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00