comparison src/changesetitem.h @ 600:641ccce7c771

Avoid messing with font size when zooming, let it zoom naturally; don't delete detail item when removing it, just let it wait to be shown again (and do delete it when deleting main item)
author Chris Cannam
date Fri, 11 May 2012 17:44:33 +0100
parents 1e76d1009167
children ae67ea0af696
comparison
equal deleted inserted replaced
599:538b6ae5c272 600:641ccce7c771
31 { 31 {
32 Q_OBJECT 32 Q_OBJECT
33 33
34 public: 34 public:
35 ChangesetItem(Changeset *cs); 35 ChangesetItem(Changeset *cs);
36 ~ChangesetItem();
36 37
37 virtual QRectF boundingRect() const; 38 virtual QRectF boundingRect() const;
38 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *); 39 virtual void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *);
39 40
40 Changeset *getChangeset() { return m_changeset; } 41 Changeset *getChangeset() { return m_changeset; }
103 void activateMenu(); 104 void activateMenu();
104 105
105 QFont m_font; 106 QFont m_font;
106 Changeset *m_changeset; 107 Changeset *m_changeset;
107 ChangesetDetailItem *m_detail; 108 ChangesetDetailItem *m_detail;
109 bool m_detailVisible;
108 bool m_showBranch; 110 bool m_showBranch;
109 int m_column; 111 int m_column;
110 int m_row; 112 int m_row;
111 bool m_wide; 113 bool m_wide;
112 bool m_current; 114 bool m_current;