path: root/tests/auto/gui/painting/qbrush/
diff options
authorAllan Sandfeld Jensen <>2015-01-28 15:52:30 +0100
committerAllan Sandfeld Jensen <>2015-02-04 22:10:17 +0000
commit57469a8e10f11ee04964ed9f8f8d00de0d6d45c1 (patch)
tree875b8ca4bcbafedad54ff0483fc5a19b07660254 /tests/auto/gui/painting/qbrush/
parenta29374fc8ecb9fc17ac125d730eed9c8ec98badb (diff)
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 <>
Diffstat (limited to 'tests/auto/gui/painting/qbrush/')
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/painting/qbrush/ b/tests/auto/gui/painting/qbrush/
index 526de12815..0cb11398dc 100644
--- a/tests/auto/gui/painting/qbrush/
+++ b/tests/auto/gui/painting/qbrush/
@@ -1,5 +1,5 @@
CONFIG += testcase
CONFIG += parallel_test
TARGET = tst_qbrush
-QT += testlib
+QT += testlib gui-private
SOURCES += tst_qbrush.cpp