Mercurial > hg > easyhg
view changesetitem.cpp @ 44:bed7ab59f62e
* A snatched bit of work on graph layout
author | Chris Cannam |
---|---|
date | Tue, 09 Nov 2010 17:51:12 +0000 |
parents | c32067cd19f8 |
children | bd3accba9b3f |
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->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)); }