Fix drawing vertical gradients in RGBA8888 formats
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Fri, 7 Feb 2014 13:38:47 +0000 (14:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 10 Feb 2014 22:02:47 +0000 (23:02 +0100)
commit15f3191981908b786b93e1e0dd7d6828e2bf18f9
treeff036b4423ea84a49a8b0849ba000d9eae2c559c
parent2a3f6359537f0c975d9bb90bba208236bcecca8b
Fix drawing vertical gradients in RGBA8888 formats

The RGBA8888 formats was incorrectly using the qt_gradient_quint32
which is argb specific. This caused vertical gradients but only
vertical gradients to be drawn incorrectly.

This changes the RGBA8888 formats formats to use the generic gradient
method and renames qt_gradient_quint32 to qt_gradient_argb32 to
indicate its limitation.

Change-Id: Ia1cd48ca7f4f78b64f31d6263e81cd8ac3b0954e
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/gui/painting/qdrawhelper.cpp
tests/auto/gui/painting/qpainter/tst_qpainter.cpp