summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-08-20 01:37:56 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-08-20 01:37:56 (GMT)
commita7b31fccbbbb4250e9cad709fe382fe16421b236 (patch)
treeb6abe07b58bc5919a34f17de2fb741a74d3d5703
parent254439c2d225e4e87ac888cffe5adc0f3e2a0ee2 (diff)
downloadQt-a7b31fccbbbb4250e9cad709fe382fe16421b236.zip
Qt-a7b31fccbbbb4250e9cad709fe382fe16421b236.tar.gz
Qt-a7b31fccbbbb4250e9cad709fe382fe16421b236.tar.bz2
Fix sub-attaq after the QGraphicsTransform changes
Reviewed-by: trustme
-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);