Mercurial > hg > easyhg
changeset 392:cf18694f64a3 item_appearance_adjustments
Draw star after (above) branch name
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Tue, 24 May 2011 17:39:42 +0100 |
parents | 1a811e7721f1 |
children | 0c826f07929f |
files | src/changesetitem.cpp |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/changesetitem.cpp Tue May 24 17:38:10 2011 +0100 +++ b/src/changesetitem.cpp Tue May 24 17:39:42 2011 +0100 @@ -389,14 +389,6 @@ paint->setBrush(Qt::NoBrush); paint->drawRoundedRect(r, 7, 7); - if (m_current && showProperLines) { - paint->setRenderHint(QPainter::SmoothPixmapTransform, true); - int starSize = fh * 1.5; - paint->drawImage(QRectF(x0 + width - starSize, - -fh, starSize, starSize), - *m_star); - } - if (m_showBranch) { // write branch name paint->save(); @@ -412,6 +404,14 @@ paint->restore(); } + if (m_current && showProperLines) { + paint->setRenderHint(QPainter::SmoothPixmapTransform, true); + int starSize = fh * 1.5; + paint->drawImage(QRectF(x0 + width - starSize, + -fh, starSize, starSize), + *m_star); + } + paint->setFont(f); for (int i = 0; i < lines.size(); ++i) {