comparison changesetitem.h @ 55:261bfb9481fe

* Make changeset item boxes wider if they have no neighbours. Changeset item code is horrible -- items generally need refactoring to take out hardcoded dimensions.
author Chris Cannam
date Fri, 12 Nov 2010 17:30:53 +0000
parents 3c46b2ac45d3
children f583e44d9d31
comparison
equal deleted inserted replaced
54:0e5fba6750c2 55:261bfb9481fe
19 int column() const { return m_column; } 19 int column() const { return m_column; }
20 int row() const { return m_row; } 20 int row() const { return m_row; }
21 void setColumn(int c) { m_column = c; setX(c * 100); } 21 void setColumn(int c) { m_column = c; setX(c * 100); }
22 void setRow(int r) { m_row = r; setY(r * 90); } 22 void setRow(int r) { m_row = r; setY(r * 90); }
23 23
24 bool isWide() const { return m_wide; }
25 void setWide(bool w) { m_wide = w; }
26
24 private: 27 private:
25 QFont m_font; 28 QFont m_font;
26 Changeset *m_changeset; 29 Changeset *m_changeset;
27 int m_column; 30 int m_column;
28 int m_row; 31 int m_row;
32 bool m_wide;
29 }; 33 };
30 34
31 #endif // CHANGESETITEM_H 35 #endif // CHANGESETITEM_H