Mercurial > hg > easyhg
view connectionitem.h @ 51:bf3ab0ffb559
* some preliminaries for thinking about use of date in row layout
author | Chris Cannam |
---|---|
date | Thu, 11 Nov 2010 22:27:24 +0000 |
parents | bd3accba9b3f |
children | 3c46b2ac45d3 |
line wrap: on
line source
#ifndef CONNECTIONITEM_H #define CONNECTIONITEM_H #include <QGraphicsItem> class Connection; class ChangesetItem; class ConnectionItem : public QGraphicsItem { public: ConnectionItem() : m_parent(0), m_child(0) { } virtual QRectF boundingRect() const; virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); //!!! deletion signals from parent/child ChangesetItem *parent() { return m_parent; } ChangesetItem *child() { return m_child; } void setParent(ChangesetItem *p) { m_parent = p; } void setChild(ChangesetItem *c) { m_child = c; } private: ChangesetItem *m_parent; ChangesetItem *m_child; }; #endif // CONNECTIONITEM_H