Mercurial > hg > easyhg
view changesetitem.cpp @ 48:996b3c4037ef
* Add IndirectPainting opt flag, makes a big difference to rendering Panner; rename project
author | Chris Cannam |
---|---|
date | Wed, 10 Nov 2010 22:07:03 +0000 |
parents | bd3accba9b3f |
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)); }