Mercurial > hg > easyhg
annotate 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 |
rev | line source |
---|---|
Chris@43 | 1 #ifndef CHANGESETITEM_H |
Chris@43 | 2 #define CHANGESETITEM_H |
Chris@43 | 3 |
Chris@43 | 4 #include <QGraphicsItem> |
Chris@43 | 5 |
Chris@43 | 6 class Changeset; |
Chris@43 | 7 |
Chris@43 | 8 class ChangesetItem : public QGraphicsItem |
Chris@43 | 9 { |
Chris@43 | 10 public: |
Chris@43 | 11 ChangesetItem(Changeset *cs) : m_changeset(cs) { } |
Chris@43 | 12 |
Chris@43 | 13 virtual QRectF boundingRect() const; |
Chris@43 | 14 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); |
Chris@43 | 15 |
Chris@43 | 16 private: |
Chris@43 | 17 Changeset *m_changeset; |
Chris@43 | 18 }; |
Chris@43 | 19 |
Chris@43 | 20 #endif // CHANGESETITEM_H |