comparison changesetitem.h @ 117:d5db15bf250c

* Start to sketch thing that shows the details of a changeset in the history view
author Chris Cannam
date Fri, 26 Nov 2010 22:46:29 +0000
parents 10eb97683aa9
children 005a54380502
comparison
equal deleted inserted replaced
116:807c79350bf1 117:d5db15bf250c
20 20
21 #include <QGraphicsItem> 21 #include <QGraphicsItem>
22 #include <QFont> 22 #include <QFont>
23 23
24 class Changeset; 24 class Changeset;
25 class ChangesetDetailItem;
25 26
26 class ChangesetItem : public QGraphicsItem 27 class ChangesetItem : public QGraphicsItem
27 { 28 {
28 public: 29 public:
29 ChangesetItem(Changeset *cs); 30 ChangesetItem(Changeset *cs);
42 void setWide(bool w) { m_wide = w; } 43 void setWide(bool w) { m_wide = w; }
43 44
44 bool shouldShowBranch() const { return m_showBranch; } 45 bool shouldShowBranch() const { return m_showBranch; }
45 void setShowBranch(bool s) { m_showBranch = s; } 46 void setShowBranch(bool s) { m_showBranch = s; }
46 47
48 protected:
49 virtual void mousePressEvent(QGraphicsSceneMouseEvent *);
50
47 private: 51 private:
48 QFont m_font; 52 QFont m_font;
49 Changeset *m_changeset; 53 Changeset *m_changeset;
54 ChangesetDetailItem *m_detail;
50 bool m_showBranch; 55 bool m_showBranch;
51 int m_column; 56 int m_column;
52 int m_row; 57 int m_row;
53 bool m_wide; 58 bool m_wide;
54 }; 59 };