Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
42:9a89dedf260a | 43:c32067cd19f8 |
---|---|
1 #include "changesetitem.h" | |
2 #include "changeset.h" | |
3 | |
4 #include <QPainter> | |
5 | |
6 QRectF | |
7 ChangesetItem::boundingRect() const | |
8 { | |
9 int n = m_changeset->number(); | |
10 return QRectF(0, 0, 250, 50); | |
11 } | |
12 | |
13 void | |
14 ChangesetItem::paint(QPainter *paint, const QStyleOptionGraphicsItem *option, | |
15 QWidget *w) | |
16 { | |
17 paint->drawText(50, 0, m_changeset->comment()); | |
18 paint->drawRect(QRectF(0, 0, 50, 50)); | |
19 | |
20 // paint->drawRect(QRectF(0, 0, 50, 50)); | |
21 } |