summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-21 01:22:20 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-21 01:22:20 (GMT)
commit0fd79d739bf102e406a8042eb20add5b1e8ebb10 (patch)
tree0e70fb1f673ce8cb04563b11b559fc8129088680 /demos
parenta88f47b6871d45b12d8a7d69d78e2d03ed4ddbbf (diff)
parent303915f67c2e797d8c9697466266e1f5c1bf45c6 (diff)
downloadQt-0fd79d739bf102e406a8042eb20add5b1e8ebb10.zip
Qt-0fd79d739bf102e406a8042eb20add5b1e8ebb10.tar.gz
Qt-0fd79d739bf102e406a8042eb20add5b1e8ebb10.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into kinetic-declarativeui
Diffstat (limited to 'demos')
-rw-r--r--demos/sub-attaq/submarine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/sub-attaq/submarine.cpp b/demos/sub-attaq/submarine.cpp
index 383005d..42a681d 100644
--- a/demos/sub-attaq/submarine.cpp
+++ b/demos/sub-attaq/submarine.cpp
@@ -113,7 +113,7 @@ SubMarine::SubMarine(int type, const QString &name, int points, QGraphicsItem *
graphicsRotation = new QGraphicsRotation(this);
graphicsRotation->setAxis(QVector3D(0, 1, 0));
- graphicsRotation->setOrigin(QPointF(size().width()/2, size().height()/2));
+ graphicsRotation->setOrigin(QVector3D(size().width()/2, size().height()/2, 0));
QList<QGraphicsTransform *> r;
r.append(graphicsRotation);
setTransformations(r);