diff options
Diffstat (limited to 'stfstrokeitem.h')
-rw-r--r-- | stfstrokeitem.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/stfstrokeitem.h b/stfstrokeitem.h new file mode 100644 index 0000000..1e780af --- /dev/null +++ b/stfstrokeitem.h @@ -0,0 +1,25 @@ +#ifndef STFSTROKEITEM_H +#define STFSTROKEITEM_H + +#include <QtGui/QGraphicsPathItem> +#include "paperreplay.h" + +class StfStrokeItem : public QGraphicsPathItem +{ +public: + StfStrokeItem(const QPainterPath &stroke, const PaperReplay::Session &session, qint64 startTime, qint64 endTime, QGraphicsItem *parent = 0); + + enum { Type = UserType + 't' }; + + int type() const; + +protected: + void mousePressEvent(QGraphicsSceneMouseEvent *event); + +private: + PaperReplay::Session _session; + qint64 _startTime; + qint64 _endTime; +}; + +#endif // STFSTROKEITEM_H |