Mercurial > hg > easyhg
comparison src/changesetitem.cpp @ 649:35b0a7aa1fc1
Show tag on merge commit (fixing #534)
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2013 15:05:40 +0000 |
parents | ae67ea0af696 |
children | ce29dc775650 |
comparison
equal
deleted
inserted
replaced
648:b55466f7b8bf | 649:35b0a7aa1fc1 |
---|---|
576 paint->drawText(-wid/2 + 25, fm.ascent() - 4, branch); | 576 paint->drawText(-wid/2 + 25, fm.ascent() - 4, branch); |
577 f.setBold(false); | 577 f.setBold(false); |
578 paint->restore(); | 578 paint->restore(); |
579 } | 579 } |
580 | 580 |
581 QStringList tags = m_changeset->tags(); | |
582 if (!tags.empty()) { | |
583 QStringList nonTipTags; | |
584 foreach (QString t, tags) { | |
585 if (t != "tip") nonTipTags.push_back(t); | |
586 } | |
587 if (!nonTipTags.empty()) { | |
588 QString tagText = nonTipTags.join(" ").trimmed(); | |
589 int tw = fm.width(tagText); | |
590 paint->fillRect(QRectF(x0 + size/2 + 2, 0, tw + 4, fh - 1), | |
591 QBrush(Qt::yellow)); | |
592 paint->drawText(x0 + size/2 + 4, fm.ascent() - 1, tagText); | |
593 } | |
594 } | |
595 | |
581 if (m_current && showProperLines) { | 596 if (m_current && showProperLines) { |
582 paint->setRenderHint(QPainter::SmoothPixmapTransform, true); | 597 paint->setRenderHint(QPainter::SmoothPixmapTransform, true); |
583 int starSize = fh * 1.5; | 598 int starSize = fh * 1.5; |
584 paint->drawImage(QRectF(x0 + size - starSize/2, | 599 paint->drawImage(QRectF(x0 + size - starSize/2, |
585 0, starSize, starSize), | 600 0, starSize, starSize), |