summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/gameitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/errorstate/gameitem.h')
-rw-r--r--examples/statemachine/errorstate/gameitem.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/statemachine/errorstate/gameitem.h b/examples/statemachine/errorstate/gameitem.h
index 9808706..43b8785 100644
--- a/examples/statemachine/errorstate/gameitem.h
+++ b/examples/statemachine/errorstate/gameitem.h
@@ -4,9 +4,15 @@
#include <QGraphicsItem>
class QLineF;
-class GameItem: public QGraphicsItem
+class GameItem: public QObject, public QGraphicsItem
{
+ Q_OBJECT
public:
+ enum { Type = UserType + 1 };
+ int type() const { return Type; }
+
+ GameItem(QObject *parent = 0);
+
virtual void idle(qreal elapsed) = 0;
protected: