diff 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
line wrap: on
line diff
--- a/src/changesetitem.h	Tue Oct 18 09:54:21 2011 +0100
+++ b/src/changesetitem.h	Tue Oct 18 11:10:20 2011 +0100
@@ -51,9 +51,15 @@
     bool isCurrent() const { return m_current; }
     void setCurrent(bool c) { m_current = c; }
 
+    // Closed is true if this changeset is on a closed branch
     bool isClosed() const { return m_closed; }
     void setClosed(bool c) { m_closed = c; }
 
+    // Closing is true if this changeset is the commit that closed its
+    // branch (i.e. is at the end of a closed branch)
+    bool isClosingCommit() const { return m_closing; }
+    void setClosingCommit(bool c) { m_closing = c; }
+
     bool isNew() const { return m_new; }
     void setNew(bool n) { m_new = n; }
 
@@ -102,6 +108,7 @@
     bool m_wide;
     bool m_current;
     bool m_closed;
+    bool m_closing;
     bool m_new;
 
     QMap<QAction *, QString> m_parentDiffActions;
@@ -111,7 +118,7 @@
 
     bool isMerge() const;
     void paintNormal(QPainter *);
-    void paintMerge(QPainter *);
+    void paintSimple(QPainter *);
 };
 
 #endif // CHANGESETITEM_H