summaryrefslogtreecommitdiffstats
path: root/examples/animation
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-05-28 14:46:03 +0200
committerThierry Bastian <thierry.bastian@nokia.com>2009-05-28 14:46:54 +0200
commit49108bbc2bf79157f1be0f837db08f72408764cb (patch)
treefbeaf7983d8919ff1e84dbee04bc794c0cac8177 /examples/animation
parenteb54435ac5717c854d6c737bca19ae23c00da045 (diff)
small cleanup on the sub-attaq demo
removed declaration of properties that are already declared in Qt
Diffstat (limited to 'examples/animation')
-rw-r--r--examples/animation/sub-attaq/boat.h3
-rw-r--r--examples/animation/sub-attaq/bomb.h3
-rw-r--r--examples/animation/sub-attaq/graphicsscene.h2
-rw-r--r--examples/animation/sub-attaq/qanimationstate.h2
-rw-r--r--examples/animation/sub-attaq/submarine.h2
-rw-r--r--examples/animation/sub-attaq/torpedo.h3
6 files changed, 6 insertions, 9 deletions
diff --git a/examples/animation/sub-attaq/boat.h b/examples/animation/sub-attaq/boat.h
index 08a9fa26d5..b412739ea5 100644
--- a/examples/animation/sub-attaq/boat.h
+++ b/examples/animation/sub-attaq/boat.h
@@ -59,7 +59,6 @@ QT_END_NAMESPACE
class Boat : public QGraphicsWidget
{
Q_OBJECT
-Q_PROPERTY(QPointF pos READ pos WRITE setPos)
public:
enum Movement {
None = 0,
@@ -85,7 +84,7 @@ public:
virtual int type() const;
-Q_SIGNALS:
+signals:
void boatDestroyed();
void boatExecutionFinished();
diff --git a/examples/animation/sub-attaq/bomb.h b/examples/animation/sub-attaq/bomb.h
index 226d056005..cfd42e5c34 100644
--- a/examples/animation/sub-attaq/bomb.h
+++ b/examples/animation/sub-attaq/bomb.h
@@ -51,7 +51,6 @@ class PixmapItem;
class Bomb : public QGraphicsWidget
{
Q_OBJECT
-Q_PROPERTY(QPointF pos READ pos WRITE setPos)
public:
enum Direction {
Left = 0,
@@ -61,7 +60,7 @@ public:
void launch(Direction direction);
void destroy();
-Q_SIGNALS:
+signals:
void bombExplosed();
void bombExecutionFinished();
diff --git a/examples/animation/sub-attaq/graphicsscene.h b/examples/animation/sub-attaq/graphicsscene.h
index 8b0ea96675..1e6618a5a8 100644
--- a/examples/animation/sub-attaq/graphicsscene.h
+++ b/examples/animation/sub-attaq/graphicsscene.h
@@ -90,7 +90,7 @@ public:
void clearScene();
QGraphicsPixmapItem *addWelcomeItem(const QPixmap &pm);
-Q_SIGNALS:
+signals:
void subMarineDestroyed(int);
void allSubMarineDestroyed(int);
diff --git a/examples/animation/sub-attaq/qanimationstate.h b/examples/animation/sub-attaq/qanimationstate.h
index e5322adb6b..72bb2d96ef 100644
--- a/examples/animation/sub-attaq/qanimationstate.h
+++ b/examples/animation/sub-attaq/qanimationstate.h
@@ -70,7 +70,7 @@ public:
void setAnimation(QAbstractAnimation *animation);
QAbstractAnimation* animation() const;
-Q_SIGNALS:
+signals:
void animationFinished();
protected:
diff --git a/examples/animation/sub-attaq/submarine.h b/examples/animation/sub-attaq/submarine.h
index 4001603649..b8dd2da309 100644
--- a/examples/animation/sub-attaq/submarine.h
+++ b/examples/animation/sub-attaq/submarine.h
@@ -75,7 +75,7 @@ public:
virtual int type() const;
-Q_SIGNALS:
+signals:
void subMarineDestroyed();
void subMarineExecutionFinished();
void subMarineStateChanged();
diff --git a/examples/animation/sub-attaq/torpedo.h b/examples/animation/sub-attaq/torpedo.h
index 4a0f4579e3..f5ab614d4f 100644
--- a/examples/animation/sub-attaq/torpedo.h
+++ b/examples/animation/sub-attaq/torpedo.h
@@ -53,14 +53,13 @@ class PixmapItem;
class Torpedo : public QGraphicsWidget
{
Q_OBJECT
-Q_PROPERTY(QPointF pos READ pos WRITE setPos)
public:
Torpedo(QGraphicsItem * parent = 0, Qt::WindowFlags wFlags = 0);
void launch();
void setCurrentSpeed(int speed);
void destroy();
-Q_SIGNALS:
+signals:
void torpedoExplosed();
void torpedoExecutionFinished();