Mercurial > hg > easyhg
diff src/historywidget.cpp @ 506:470829a21f98
Identify closed branches and display them in a lighter shade
author | Chris Cannam |
---|---|
date | Mon, 17 Oct 2011 22:08:05 +0100 |
parents | 1c05e7576ea5 |
children | ddc7238fc3b0 |
line wrap: on
line diff
--- a/src/historywidget.cpp Mon Oct 17 16:25:02 2011 +0100 +++ b/src/historywidget.cpp Mon Oct 17 22:08:05 2011 +0100 @@ -87,6 +87,13 @@ m_refreshNeeded = true; } +void HistoryWidget::setClosedHeadIds(QSet<QString> closed) +{ + if (closed == m_closedIds) return; + m_closedIds = closed; + m_refreshNeeded = true; +} + void HistoryWidget::setShowUncommitted(bool showUncommitted) { setCurrent(m_currentIds, m_currentBranch, showUncommitted); @@ -181,6 +188,7 @@ if (!m_changesets.empty()) { Grapher g(scene); + g.setClosedHeadIds(m_closedIds); try { g.layout(m_changesets, m_showUncommitted ? m_currentIds : QStringList(), @@ -251,7 +259,8 @@ DEBUG << "id " << id << " is new" << endl; } - if (csit->isCurrent() != current || csit->isNew() != newid) { + if (csit->isCurrent() != current || + csit->isNew() != newid) { csit->setCurrent(current); csit->setNew(newid); csit->update();