Pause now works
[ghostsoverboard] / orientationcontrolledgraphicspixmapobject.h
1 #ifndef ORIENTATIONCONTROLLEDGRAPHICSPIXMAPOBJECT_H
2 #define ORIENTATIONCONTROLLEDGRAPHICSPIXMAPOBJECT_H
3
4 #include <QGraphicsPixmapItem>
5 #include <QRotationSensor>
6
7 QTM_USE_NAMESPACE
8
9
10 class OrientationControlledGraphicsPixmapObject : public QObject, public QGraphicsPixmapItem
11 {
12     Q_OBJECT
13 public:
14 //    explicit OrientationControlledGraphicsPixmapObject(QGraphicsItem *parent = 0);
15     explicit OrientationControlledGraphicsPixmapObject(QPixmap pixmap = 0, QGraphicsItem *parent = 0);
16
17 signals:
18
19 public slots:
20     void startMoving();
21     void stopMoving();
22     void readRotationSensor();
23     void setBoundaries(QRectF boundaryrect);
24
25
26 private:
27
28     QRotationSensor rotationSensor_;
29
30     QRectF boundaryrect_;
31
32 };
33
34 #endif // ORIENTATIONCONTROLLEDGRAPHICSPIXMAPOBJECT_H