28 #include <QGraphicsObject>
29 #include <QTouchEvent>
38 void setSize(uint32_t width, uint32_t height);
53 virtual QRectF boundingRect ()
const;
54 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem*, QWidget*);
55 QBrush stateToBrush(Qt::TouchPointState state);
58 static const int m_max_touches = 10;
59 uint32_t m_width, m_height;
63 bool m_render_crosshairs;
66 QList<QTouchEvent::TouchPoint> m_touchPointHistory[m_max_touches];