diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-03 10:28:08 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-09-03 10:30:06 (GMT) |
commit | 464ee98eee5ce160b497aec6a1163422980dd797 (patch) | |
tree | 883172815821752a51bff8c2ccb4128a42f0122e /examples/graphicsview/dragdroprobot | |
parent | 75078d7b20155ba192b88ec54008e07d1ee44676 (diff) | |
download | Qt-464ee98eee5ce160b497aec6a1163422980dd797.zip Qt-464ee98eee5ce160b497aec6a1163422980dd797.tar.gz Qt-464ee98eee5ce160b497aec6a1163422980dd797.tar.bz2 |
Fix test failure & optimize matrix operations in QGraphicsItem.
This fixes failures in tst_QGraphicsItem::setTransformProperties().
Change 9e8ff32d introduced QMatrix4x4 as an internal matrix for
QGraphicsItem. Problem is, QMatrix4x4 is float-based whereas QTransform
is double-based. This change readds the use of QTransform in the case
where there are no QGraphicsTransforms in the list. This by itself also
makes this common case a bit faster.
The workaround is moot if somebody adds any QGraphicsTransform,
including one that doesn't do anything (like rotate by 0 degrees). So
we might have to find a better fix.
Reviewed-by: Olivier
Diffstat (limited to 'examples/graphicsview/dragdroprobot')
0 files changed, 0 insertions, 0 deletions