diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-21 06:00:08 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-21 06:00:08 (GMT) |
commit | f11fc8f62558543dac1eca9d52a4801196c55221 (patch) | |
tree | e7236141e946dae9cc791a240896c640999d6fd7 /demos/sub-attaq | |
parent | d63d0c10c0eeef0d2f93f3d0b197e09399087b00 (diff) | |
parent | 95c116a562c6d488caf5f2222af3c261c304587f (diff) | |
download | Qt-f11fc8f62558543dac1eca9d52a4801196c55221.zip Qt-f11fc8f62558543dac1eca9d52a4801196c55221.tar.gz Qt-f11fc8f62558543dac1eca9d52a4801196c55221.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into qtscript-jsc-backend
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); |