Mercurial > hg > easyhg
comparison src/historywidget.cpp @ 519:000f13faa089
Bookmarks are now displayed -- but exactly like tags, so far, there's no differentiation yet
author | Chris Cannam |
---|---|
date | Tue, 08 Nov 2011 16:42:09 +0000 |
parents | 306a62fe851e |
children | a17c06f773cd |
comparison
equal
deleted
inserted
replaced
518:5c846f3c9244 | 519:000f13faa089 |
---|---|
100 foreach (QString id, ids) { | 100 foreach (QString id, ids) { |
101 m_currentIds.push_back(id); | 101 m_currentIds.push_back(id); |
102 } | 102 } |
103 | 103 |
104 m_refreshNeeded = true; | 104 m_refreshNeeded = true; |
105 } | |
106 | |
107 void HistoryWidget::setBookmarks(QHash<QString, QStringList> bookmarks) | |
108 { | |
109 m_bookmarks = bookmarks; | |
105 } | 110 } |
106 | 111 |
107 void HistoryWidget::setClosedHeadIds(QSet<QString> closed) | 112 void HistoryWidget::setClosedHeadIds(QSet<QString> closed) |
108 { | 113 { |
109 if (closed == m_closedIds) return; | 114 if (closed == m_closedIds) return; |
283 bool newid = m_newIds.contains(id); | 288 bool newid = m_newIds.contains(id); |
284 if (newid) { | 289 if (newid) { |
285 DEBUG << "id " << id << " is new" << endl; | 290 DEBUG << "id " << id << " is new" << endl; |
286 } | 291 } |
287 | 292 |
293 if (m_bookmarks.contains(id)) { | |
294 csit->setBookmarks(m_bookmarks[id]); | |
295 } else { | |
296 csit->setBookmarks(QStringList()); | |
297 } | |
298 | |
288 if (csit->isCurrent() != current || | 299 if (csit->isCurrent() != current || |
289 csit->isNew() != newid) { | 300 csit->isNew() != newid) { |
290 csit->setCurrent(current); | 301 csit->setCurrent(current); |
291 csit->setNew(newid); | 302 csit->setNew(newid); |
292 csit->update(); | 303 csit->update(); |