diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-20 01:37:56 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-20 01:37:56 (GMT) |
commit | a7b31fccbbbb4250e9cad709fe382fe16421b236 (patch) | |
tree | b6abe07b58bc5919a34f17de2fb741a74d3d5703 /demos/sub-attaq | |
parent | 254439c2d225e4e87ac888cffe5adc0f3e2a0ee2 (diff) | |
download | Qt-a7b31fccbbbb4250e9cad709fe382fe16421b236.zip Qt-a7b31fccbbbb4250e9cad709fe382fe16421b236.tar.gz Qt-a7b31fccbbbb4250e9cad709fe382fe16421b236.tar.bz2 |
Fix sub-attaq after the QGraphicsTransform changes
Reviewed-by: trustme
Diffstat (limited to 'demos/sub-attaq')
-rw-r--r-- | demos/sub-attaq/submarine.cpp | 2 |
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); |