diff changesetitem.h @ 43:c32067cd19f8

* Some experiments towards a graph history view
author Chris Cannam
date Sun, 07 Nov 2010 19:59:54 +0000
parents
children bed7ab59f62e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/changesetitem.h	Sun Nov 07 19:59:54 2010 +0000
@@ -0,0 +1,20 @@
+#ifndef CHANGESETITEM_H
+#define CHANGESETITEM_H
+
+#include <QGraphicsItem>
+
+class Changeset;
+
+class ChangesetItem : public QGraphicsItem
+{
+public:
+    ChangesetItem(Changeset *cs) : m_changeset(cs) { }
+
+    virtual QRectF boundingRect() const;
+    virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
+
+private:
+    Changeset *m_changeset;
+};
+
+#endif // CHANGESETITEM_H