Mercurial > hg > easyhg
diff changesetitem.cpp @ 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.cpp Sun Nov 07 19:59:54 2010 +0000 @@ -0,0 +1,21 @@ +#include "changesetitem.h" +#include "changeset.h" + +#include <QPainter> + +QRectF +ChangesetItem::boundingRect() const +{ + int n = m_changeset->number(); + return QRectF(0, 0, 250, 50); +} + +void +ChangesetItem::paint(QPainter *paint, const QStyleOptionGraphicsItem *option, + QWidget *w) +{ + paint->drawText(50, 0, m_changeset->comment()); + paint->drawRect(QRectF(0, 0, 50, 50)); + +// paint->drawRect(QRectF(0, 0, 50, 50)); +}