diff changesetitem.h @ 53:3c46b2ac45d3

* Put proper labels &c in changeset items; colour branches and users; etc
author Chris Cannam
date Fri, 12 Nov 2010 16:48:18 +0000
parents bd3accba9b3f
children 261bfb9481fe
line wrap: on
line diff
--- a/changesetitem.h	Fri Nov 12 11:32:01 2010 +0000
+++ b/changesetitem.h	Fri Nov 12 16:48:18 2010 +0000
@@ -2,23 +2,27 @@
 #define CHANGESETITEM_H
 
 #include <QGraphicsItem>
+#include <QFont>
 
 class Changeset;
 
 class ChangesetItem : public QGraphicsItem
 {
 public:
-    ChangesetItem(Changeset *cs) : m_changeset(cs), m_column(0), m_row(0) { }
+    ChangesetItem(Changeset *cs);
 
     virtual QRectF boundingRect() const;
     virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
 
+    Changeset *getChangeset() { return m_changeset; }
+
     int column() const { return m_column; }
     int row() const { return m_row; }
     void setColumn(int c) { m_column = c; setX(c * 100); }
-    void setRow(int r) { m_row = r; setY(r * 100); }
+    void setRow(int r) { m_row = r; setY(r * 90); }
 
 private:
+    QFont m_font;
     Changeset *m_changeset;
     int m_column;
     int m_row;