Mercurial > hg > easyhg
view changesetitem.cpp @ 46:bd3accba9b3f
* Better layout for branches; spline connection paths
| author | Chris Cannam | 
|---|---|
| date | Wed, 10 Nov 2010 17:11:41 +0000 | 
| parents | bed7ab59f62e | 
| children | 3c46b2ac45d3 | 
line wrap: on
 line source
#include "changesetitem.h" #include "changeset.h" #include <QPainter> QRectF ChangesetItem::boundingRect() const { return QRectF(0, 0, 250, 50); } void ChangesetItem::paint(QPainter *paint, const QStyleOptionGraphicsItem *option, QWidget *w) { // paint->drawText(50, 0, m_changeset->comment()); paint->drawText(5, 15, m_changeset->authorName()); paint->drawText(5, 30, m_changeset->branch()); paint->drawRect(QRectF(0, 0, 50, 50)); // paint->drawRect(QRectF(0, 0, 50, 50)); }
