1 #ifndef ORIENTATIONCONTROLLEDGRAPHICSPIXMAPOBJECT_H
2 #define ORIENTATIONCONTROLLEDGRAPHICSPIXMAPOBJECT_H
4 #include <QGraphicsPixmapItem>
5 #include <QRotationSensor>
10 class OrientationControlledGraphicsPixmapObject : public QObject, public QGraphicsPixmapItem
14 // explicit OrientationControlledGraphicsPixmapObject(QGraphicsItem *parent = 0);
15 explicit OrientationControlledGraphicsPixmapObject(QPixmap pixmap = 0, QGraphicsItem *parent = 0);
22 void readRotationSensor();
23 void setBoundaries(QRectF boundaryrect);
28 QRotationSensor rotationSensor_;
34 #endif // ORIENTATIONCONTROLLEDGRAPHICSPIXMAPOBJECT_H