aboutsummaryrefslogtreecommitdiff
path: root/stfstrokeitem.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 01:35:25 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 01:35:25 +0200
commit59feffc5a253fec33b310f7a0105c8ef42b9019b (patch)
tree855c7c86b4413d813d2a6c40d167eb78ee3250d3 /stfstrokeitem.h
parent72a71a2003028fc97d74cebecebb1541d66ded86 (diff)
downloadscribiu-59feffc5a253fec33b310f7a0105c8ef42b9019b.tar.gz
scribiu-59feffc5a253fec33b310f7a0105c8ef42b9019b.zip
paperreplay working
Diffstat (limited to 'stfstrokeitem.h')
-rw-r--r--stfstrokeitem.h25
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