aboutsummaryrefslogtreecommitdiff
path: root/stfgraphicsitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'stfgraphicsitem.h')
-rw-r--r--stfgraphicsitem.h20
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