blob: 1e780af76519a3a14b510af9c760bf7d565dc9f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|