Mercurial > hg > easyhg
diff src/changesetitem.cpp @ 520:a17c06f773cd
idiot -- we don't need to query bookmarks separately, we can just add them to the log template
author | Chris Cannam |
---|---|
date | Wed, 09 Nov 2011 13:04:00 +0000 |
parents | 000f13faa089 |
children | b5a342a71218 |
line wrap: on
line diff
--- a/src/changesetitem.cpp Tue Nov 08 16:42:09 2011 +0000 +++ b/src/changesetitem.cpp Wed Nov 09 13:04:00 2011 +0000 @@ -407,17 +407,6 @@ } } - 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); - if (m_showBranch) { // write branch name paint->save(); @@ -433,6 +422,21 @@ paint->restore(); } + QStringList bookmarks = m_changeset->bookmarks(); + if (!bookmarks.empty()) { + QString bmText = bookmarks.join(" ").trimmed(); + int bw = fm.width(bmText); + paint->fillRect(QRectF(x0 + width - fh*2 - bw, -fh - 4, + bw + 4, fh - 1), + QBrush(Qt::yellow)); + paint->drawText(x0 + width - fh*2 - bw + 2, + -fh + fm.ascent() - 4, bmText); + } + + paint->setPen(QPen(branchColour, 2)); + paint->setBrush(Qt::NoBrush); + paint->drawRoundedRect(r, 7, 7); + if (m_current && showProperLines) { paint->setRenderHint(QPainter::SmoothPixmapTransform, true); int starSize = fh * 1.5;