summaryrefslogtreecommitdiffstats
path: root/demos/sub-attaq/submarine.h
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-12 10:40:30 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-12 10:42:20 (GMT)
commite780030ca6990e73444646e6deae48145ca49972 (patch)
tree91ebea829ba4d71a7863be5401fab7fc9f46f894 /demos/sub-attaq/submarine.h
parent031004dba57bff8eed8cdd0cd4c9ce44c9c36fd8 (diff)
downloadQt-e780030ca6990e73444646e6deae48145ca49972.zip
Qt-e780030ca6990e73444646e6deae48145ca49972.tar.gz
Qt-e780030ca6990e73444646e6deae48145ca49972.tar.bz2
QGraphicsRotation and QGraphicsRotation3D are now merged into 1 class
You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
Diffstat (limited to 'demos/sub-attaq/submarine.h')
-rw-r--r--demos/sub-attaq/submarine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/sub-attaq/submarine.h b/demos/sub-attaq/submarine.h
index 0e4d074..1e33ba0 100644
--- a/demos/sub-attaq/submarine.h
+++ b/demos/sub-attaq/submarine.h
@@ -76,7 +76,7 @@ public:
virtual int type() const;
- QGraphicsRotation3D *rotation3d() const { return graphicsRotation; }
+ QGraphicsRotation *rotation() const { return graphicsRotation; }
signals:
void subMarineDestroyed();
@@ -90,7 +90,7 @@ private:
int speed;
Movement direction;
PixmapItem *pixmapItem;
- QGraphicsRotation3D *graphicsRotation;
+ QGraphicsRotation *graphicsRotation;
};
#endif //__SUBMARINE__H__