Mercurial > hg > easyhg
view 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 source
#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)); }