diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-21 01:22:20 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-21 01:22:20 (GMT) |
commit | 0fd79d739bf102e406a8042eb20add5b1e8ebb10 (patch) | |
tree | 0e70fb1f673ce8cb04563b11b559fc8129088680 /demos | |
parent | a88f47b6871d45b12d8a7d69d78e2d03ed4ddbbf (diff) | |
parent | 303915f67c2e797d8c9697466266e1f5c1bf45c6 (diff) | |
download | Qt-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.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); |