comparison changesetitem.h @ 46:bd3accba9b3f

* Better layout for branches; spline connection paths
author Chris Cannam
date Wed, 10 Nov 2010 17:11:41 +0000
parents bed7ab59f62e
children 3c46b2ac45d3
comparison
equal deleted inserted replaced
45:4286836bb3c9 46:bd3accba9b3f
13 virtual QRectF boundingRect() const; 13 virtual QRectF boundingRect() const;
14 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); 14 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
15 15
16 int column() const { return m_column; } 16 int column() const { return m_column; }
17 int row() const { return m_row; } 17 int row() const { return m_row; }
18 void setColumn(int c) { m_column = c; } 18 void setColumn(int c) { m_column = c; setX(c * 100); }
19 void setRow(int r) { m_row = r; } 19 void setRow(int r) { m_row = r; setY(r * 100); }
20 20
21 private: 21 private:
22 Changeset *m_changeset; 22 Changeset *m_changeset;
23 int m_column; 23 int m_column;
24 int m_row; 24 int m_row;