summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsview.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-05-20 14:38:47 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:43:22 (GMT)
commit56f23d4ccfc27f737d30e92ae5b3ecde6e8b0bbf (patch)
treecd4b34938a2f52ab7734496ac4a79089a1343ddf /src/gui/graphicsview/qgraphicsview.cpp
parent9ed567ca68d51552f89887aa5a300a5f6a6d8ac3 (diff)
downloadQt-56f23d4ccfc27f737d30e92ae5b3ecde6e8b0bbf.zip
Qt-56f23d4ccfc27f737d30e92ae5b3ecde6e8b0bbf.tar.gz
Qt-56f23d4ccfc27f737d30e92ae5b3ecde6e8b0bbf.tar.bz2
Add (back) properties to QGraphicsItem to change the transformations component
This reapply commit 8ad5020940f10d4ecc5c5e8b3b9656531cb84ef3 and its dependent change that has been reverted while rebasing the recursivepaint branch. With the new properties it is possible to easily animate transformations Reviewed-by: Andreas Documentation still need to be reviewed.
Diffstat (limited to 'src/gui/graphicsview/qgraphicsview.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp
index a9fc563..166bcb9 100644
--- a/src/gui/graphicsview/qgraphicsview.cpp
+++ b/src/gui/graphicsview/qgraphicsview.cpp
@@ -752,7 +752,7 @@ QRect QGraphicsViewPrivate::mapToViewRect(const QGraphicsItem *item, const QRect
const QGraphicsItemPrivate *itemd;
do {
itemd = parentItem->d_ptr;
- if (itemd->transform)
+ if (itemd->transformData)
break;
offset += itemd->pos;
} while ((parentItem = itemd->parent));