diff changesetitem.h @ 44:bed7ab59f62e

* A snatched bit of work on graph layout
author Chris Cannam
date Tue, 09 Nov 2010 17:51:12 +0000
parents c32067cd19f8
children bd3accba9b3f
line wrap: on
line diff
--- a/changesetitem.h	Sun Nov 07 19:59:54 2010 +0000
+++ b/changesetitem.h	Tue Nov 09 17:51:12 2010 +0000
@@ -8,13 +8,20 @@
 class ChangesetItem : public QGraphicsItem
 {
 public:
-    ChangesetItem(Changeset *cs) : m_changeset(cs) { }
+    ChangesetItem(Changeset *cs) : m_changeset(cs), m_column(0), m_row(0) { }
 
     virtual QRectF boundingRect() const;
     virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
 
+    int column() const { return m_column; }
+    int row() const { return m_row; }
+    void setColumn(int c) { m_column = c; }
+    void setRow(int r) { m_row = r; }
+
 private:
     Changeset *m_changeset;
+    int m_column;
+    int m_row;
 };
 
 #endif // CHANGESETITEM_H