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