Mercurial > hg > easyhg
view changesetitem.cpp @ 51:bf3ab0ffb559
* some preliminaries for thinking about use of date in row layout
author | Chris Cannam |
---|---|
date | Thu, 11 Nov 2010 22:27:24 +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)); }