diff options
author | Javier <dev.git@javispedro.com> | 2015-06-07 21:22:45 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-07 21:22:45 +0200 |
commit | a69e97943539a8abc4d2762638c169dc19c88516 (patch) | |
tree | f3516ea29745db65971247cee4c260b49f1067b2 /stfgraphicsitem.h | |
download | scribiu-a69e97943539a8abc4d2762638c169dc19c88516.tar.gz scribiu-a69e97943539a8abc4d2762638c169dc19c88516.zip |
initial import
Diffstat (limited to 'stfgraphicsitem.h')
-rw-r--r-- | stfgraphicsitem.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/stfgraphicsitem.h b/stfgraphicsitem.h new file mode 100644 index 0000000..ed62ede --- /dev/null +++ b/stfgraphicsitem.h @@ -0,0 +1,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 |