From 59feffc5a253fec33b310f7a0105c8ef42b9019b Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 14 Jun 2015 01:35:25 +0200 Subject: paperreplay working --- stfstrokeitem.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 stfstrokeitem.h (limited to 'stfstrokeitem.h') 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 +#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 -- cgit v1.2.3