summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-10 12:31:20 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-10 14:15:41 (GMT)
commit32f32ee3e752a6cc03505ddaa48d2849eaedc2a6 (patch)
treeab6529edcfd0cc41a4d998504e768129c2e19dfd /demos
parentf01efd0b49be074d9bc5a963b6d353b9eddf365a (diff)
downloadQt-32f32ee3e752a6cc03505ddaa48d2849eaedc2a6.zip
Qt-32f32ee3e752a6cc03505ddaa48d2849eaedc2a6.tar.gz
Qt-32f32ee3e752a6cc03505ddaa48d2849eaedc2a6.tar.bz2
QPainter::worldTransform() does not return identity matrix.
QPainter::worldTransform() does not return identity matrix when created on a redirected widget. It should always be identity by default, and should only change as a result of QPainter::setWorldTransform. The reason it didn't return identity for redirected widgets, was that we translated the shared painter's world matrix directly. Since we cannot modify the world matrix directly, we have to store the shared painter's current world transform in a separate matrix (redirectedMatrix), reset the world transform to identity, and later combine the redirectedMatrix with world transforms set on the painter. Note that redirection_offset was in negative coordinates before, and that redirectionMatrix now is in positive coordinates, hence opposite signs around. Auto-test included. Reviewed-by: lars Reviewed-by: Samuel
Diffstat (limited to 'demos')
0 files changed, 0 insertions, 0 deletions