comparison 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
comparison
equal deleted inserted replaced
518:5c846f3c9244 519:000f13faa089
403 int tw = fm.width(tagText); 403 int tw = fm.width(tagText);
404 paint->fillRect(QRectF(x0 + width - 8 - tw, 1, tw + 4, fh - 1), 404 paint->fillRect(QRectF(x0 + width - 8 - tw, 1, tw + 4, fh - 1),
405 QBrush(Qt::yellow)); 405 QBrush(Qt::yellow));
406 paint->drawText(x0 + width - 6 - tw, fm.ascent(), tagText); 406 paint->drawText(x0 + width - 6 - tw, fm.ascent(), tagText);
407 } 407 }
408 }
409
410 if (!m_bookmarks.empty()) {
411 QString bmText = m_bookmarks.join(" ").trimmed();
412 int bw = fm.width(bmText);
413 paint->fillRect(QRectF(x0 + width - 8 - bw, 1, bw + 4, fh - 1),
414 QBrush(Qt::yellow)); paint->drawText(x0 + width - 6 - bw, fm.ascent(), bmText);
408 } 415 }
409 416
410 paint->setPen(QPen(branchColour, 2)); 417 paint->setPen(QPen(branchColour, 2));
411 paint->setBrush(Qt::NoBrush); 418 paint->setBrush(Qt::NoBrush);
412 paint->drawRoundedRect(r, 7, 7); 419 paint->drawRoundedRect(r, 7, 7);