summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-21 09:20:14 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-21 09:20:14 +1000
commitbb8ed752d728c458dab7bd9279c9040a1c137789 (patch)
tree16168717ae22f6770fbb6612b23a7a8e4b23e8bd /demos
parente90a5e819478b656963de0492a1b234c8863a12b (diff)
parenta7b31fccbbbb4250e9cad709fe382fe16421b236 (diff)
Merge branch 'kinetic-transform' of git@scm.dev.nokia.troll.no:qt/kinetic
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 383005df83..42a681d404 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);