diff 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
line wrap: on
line diff
--- a/src/historywidget.cpp	Thu Oct 20 15:39:46 2011 +0100
+++ b/src/historywidget.cpp	Tue Nov 08 16:42:09 2011 +0000
@@ -104,6 +104,11 @@
     m_refreshNeeded = true;
 }
 
+void HistoryWidget::setBookmarks(QHash<QString, QStringList> bookmarks)
+{
+    m_bookmarks = bookmarks;
+}
+
 void HistoryWidget::setClosedHeadIds(QSet<QString> closed)
 {
     if (closed == m_closedIds) return;
@@ -285,6 +290,12 @@
             DEBUG << "id " << id << " is new" << endl;
         }
 
+        if (m_bookmarks.contains(id)) {
+            csit->setBookmarks(m_bookmarks[id]);
+        } else {
+            csit->setBookmarks(QStringList());
+        }
+
         if (csit->isCurrent() != current ||
             csit->isNew() != newid) {
             csit->setCurrent(current);