annotate dateitem.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
children f583e44d9d31
rev   line source
Chris@53 1 #ifndef DATEITEM_H
Chris@53 2 #define DATEITEM_H
Chris@53 3
Chris@53 4 #include <QGraphicsRectItem>
Chris@53 5
Chris@53 6 class DateItem : public QGraphicsItem
Chris@53 7 {
Chris@53 8 public:
Chris@53 9 DateItem() :
Chris@53 10 m_minrow(0), m_maxrow(0),
Chris@53 11 m_mincol(0), m_maxcol(0),
Chris@53 12 m_even(false) {}
Chris@53 13
Chris@53 14 virtual QRectF boundingRect() const;
Chris@53 15 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
Chris@53 16
Chris@53 17 void setRows(int minrow, int n);
Chris@53 18 void setCols(int mincol, int n);
Chris@53 19
Chris@53 20 void setEven(bool e) { m_even = e; }
Chris@53 21
Chris@53 22 QString dateString() const { return m_dateString; }
Chris@53 23 void setDateString(QString s) { m_dateString = s; }
Chris@53 24
Chris@53 25 private:
Chris@53 26 QString m_dateString;
Chris@53 27 int m_minrow;
Chris@53 28 int m_maxrow;
Chris@53 29 int m_mincol;
Chris@53 30 int m_maxcol;
Chris@53 31 bool m_even;
Chris@53 32 };
Chris@53 33
Chris@53 34 #endif // DATEITEM_H