summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/collidingmice/mouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphicsview/collidingmice/mouse.h')
-rw-r--r--examples/graphicsview/collidingmice/mouse.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/graphicsview/collidingmice/mouse.h b/examples/graphicsview/collidingmice/mouse.h
index 832ea53..c08ce4a 100644
--- a/examples/graphicsview/collidingmice/mouse.h
+++ b/examples/graphicsview/collidingmice/mouse.h
@@ -43,13 +43,10 @@
#define MOUSE_H
#include <QGraphicsItem>
-#include <QObject>
//! [0]
-class Mouse : public QObject, public QGraphicsItem
+class Mouse : public QGraphicsItem
{
- Q_OBJECT
-
public:
Mouse();
@@ -59,7 +56,7 @@ public:
QWidget *widget);
protected:
- void timerEvent(QTimerEvent *event);
+ void advance(int step);
private:
qreal angle;