summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/errorstate/gameitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/errorstate/gameitem.cpp')
-rw-r--r--examples/statemachine/errorstate/gameitem.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/statemachine/errorstate/gameitem.cpp b/examples/statemachine/errorstate/gameitem.cpp
index 786cf51..d286df4 100644
--- a/examples/statemachine/errorstate/gameitem.cpp
+++ b/examples/statemachine/errorstate/gameitem.cpp
@@ -2,6 +2,10 @@
#include <QGraphicsScene>
+GameItem::GameItem(QObject *parent) : QObject(parent)
+{
+}
+
QPointF GameItem::tryMove(const QPointF &requestedPosition, QLineF *collidedLine,
QGraphicsItem **collidedItem) const
{