aboutsummaryrefslogtreecommitdiff
path: root/stfgraphicsitem.h
blob: 3d3178e810794edff87388cb2a3b47a96b5a507a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef STFGRAPHICSITEM_H
#define STFGRAPHICSITEM_H

#include <QtGui/QGraphicsItem>
#include "paperreplay.h"

class StfGraphicsItem : public QGraphicsItem
{
	QRectF bbox;

public:
	explicit StfGraphicsItem(QIODevice *stf, const PaperReplay::SessionList &replays, QGraphicsItem *parent = 0);

	enum { Type = UserType + 's' };

	QRectF boundingRect() const;
	void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
	int type() const;
};

#endif // STFGRAPHICSITEM_H