diff src/changesetitem.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/changesetitem.cpp	Thu Oct 20 15:39:46 2011 +0100
+++ b/src/changesetitem.cpp	Tue Nov 08 16:42:09 2011 +0000
@@ -407,6 +407,13 @@
         }
     }
 
+    if (!m_bookmarks.empty()) {
+        QString bmText = m_bookmarks.join(" ").trimmed();
+        int bw = fm.width(bmText);
+        paint->fillRect(QRectF(x0 + width - 8 - bw, 1, bw + 4, fh - 1),
+                        QBrush(Qt::yellow)); paint->drawText(x0 + width - 6 - bw, fm.ascent(), bmText);
+    }
+
     paint->setPen(QPen(branchColour, 2));
     paint->setBrush(Qt::NoBrush);
     paint->drawRoundedRect(r, 7, 7);