Mercurial > hg > easyhg
comparison src/changesetitem.h @ 508:c43880dfdb78
Show closing commits as simple squares
author | Chris Cannam |
---|---|
date | Tue, 18 Oct 2011 11:10:20 +0100 |
parents | 470829a21f98 |
children | c623ce6b3104 |
comparison
equal
deleted
inserted
replaced
507:459aa20d3eee | 508:c43880dfdb78 |
---|---|
49 void setWide(bool w) { m_wide = w; } | 49 void setWide(bool w) { m_wide = w; } |
50 | 50 |
51 bool isCurrent() const { return m_current; } | 51 bool isCurrent() const { return m_current; } |
52 void setCurrent(bool c) { m_current = c; } | 52 void setCurrent(bool c) { m_current = c; } |
53 | 53 |
54 // Closed is true if this changeset is on a closed branch | |
54 bool isClosed() const { return m_closed; } | 55 bool isClosed() const { return m_closed; } |
55 void setClosed(bool c) { m_closed = c; } | 56 void setClosed(bool c) { m_closed = c; } |
57 | |
58 // Closing is true if this changeset is the commit that closed its | |
59 // branch (i.e. is at the end of a closed branch) | |
60 bool isClosingCommit() const { return m_closing; } | |
61 void setClosingCommit(bool c) { m_closing = c; } | |
56 | 62 |
57 bool isNew() const { return m_new; } | 63 bool isNew() const { return m_new; } |
58 void setNew(bool n) { m_new = n; } | 64 void setNew(bool n) { m_new = n; } |
59 | 65 |
60 bool showBranch() const { return m_showBranch; } | 66 bool showBranch() const { return m_showBranch; } |
100 int m_column; | 106 int m_column; |
101 int m_row; | 107 int m_row; |
102 bool m_wide; | 108 bool m_wide; |
103 bool m_current; | 109 bool m_current; |
104 bool m_closed; | 110 bool m_closed; |
111 bool m_closing; | |
105 bool m_new; | 112 bool m_new; |
106 | 113 |
107 QMap<QAction *, QString> m_parentDiffActions; | 114 QMap<QAction *, QString> m_parentDiffActions; |
108 QMap<QAction *, QString> m_summaryActions; | 115 QMap<QAction *, QString> m_summaryActions; |
109 | 116 |
110 static QImage *m_star; | 117 static QImage *m_star; |
111 | 118 |
112 bool isMerge() const; | 119 bool isMerge() const; |
113 void paintNormal(QPainter *); | 120 void paintNormal(QPainter *); |
114 void paintMerge(QPainter *); | 121 void paintSimple(QPainter *); |
115 }; | 122 }; |
116 | 123 |
117 #endif // CHANGESETITEM_H | 124 #endif // CHANGESETITEM_H |