Wrong opacity set on the painter in QGraphicsEffect::draw.
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>
Thu, 10 Sep 2009 11:21:48 +0000 (13:21 +0200)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>
Thu, 10 Sep 2009 11:42:16 +0000 (13:42 +0200)
commite6efbad527e2b83ee8f4bb5e9fdbed9177ccd3a1
tree46a55624c14e475788ecca984dcdf076fb20f06e
parent111eaf464eafbc1130e405373067b70fed089622
Wrong opacity set on the painter in QGraphicsEffect::draw.

We have to initialize the painter with the 'effected' item's
opacity before calling QGraphicsEffect::draw; otherwise we'll
use the previous rendered item's opacity (which is wrong).

Reviewed-by: Michael Brasser
src/gui/graphicsview/qgraphicsscene.cpp
tests/auto/qgraphicseffect/tst_qgraphicseffect.cpp