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

#include <QtGui/QGraphicsItem>

class StfGraphicsItem : public QGraphicsItem
{
	QRectF bbox;

public:
	explicit StfGraphicsItem(QIODevice *stf, 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