# HG changeset patch # User Chris Cannam # Date 1306255619 -3600 # Node ID 0c826f07929f05e57c42d2cec23c2f09d4e76d39 # Parent cf18694f64a3f5ea1b947b70871133cf9c6cfe9c Show whole of "new" item in yellow, not just border -- and omit yellow border except for current item diff -r cf18694f64a3 -r 0c826f07929f src/changesetitem.cpp --- a/src/changesetitem.cpp Tue May 24 17:39:42 2011 +0100 +++ b/src/changesetitem.cpp Tue May 24 17:46:59 2011 +0100 @@ -324,20 +324,23 @@ if (showProperLines) { - paint->setBrush(Qt::white); + if (m_new) { + paint->setBrush(QColor(255, 255, 156)); + } else { + paint->setBrush(Qt::white); + } if (m_current) { paint->drawRoundedRect(QRectF(x0 - 4, -4, width + 5, height + 8), 10, 10); - } - - if (m_new) { - paint->save(); - paint->setPen(Qt::yellow); - paint->setBrush(Qt::NoBrush); - paint->drawRoundedRect(QRectF(x0 - 2, -2, width + 1, height + 4), - 10, 10); - paint->restore(); + if (m_new) { + paint->save(); + paint->setPen(Qt::yellow); + paint->setBrush(Qt::NoBrush); + paint->drawRoundedRect(QRectF(x0 - 2, -2, width + 1, height + 4), + 10, 10); + paint->restore(); + } } } @@ -455,20 +458,24 @@ int size = fh * 2; int x0 = -size/2 + 25; - paint->setBrush(Qt::white); + if (m_new) { + paint->setBrush(QColor(255, 255, 156)); + } else { + paint->setBrush(Qt::white); + } if (showProperLines) { if (m_current) { paint->drawEllipse(QRectF(x0 - 4, fh - 4, size + 8, size + 8)); - } - if (m_new) { - paint->save(); - paint->setPen(Qt::yellow); - paint->setBrush(Qt::NoBrush); - paint->drawEllipse(QRectF(x0 - 2, fh - 2, size + 4, size + 4)); - paint->restore(); + if (m_new) { + paint->save(); + paint->setPen(Qt::yellow); + paint->setBrush(Qt::NoBrush); + paint->drawEllipse(QRectF(x0 - 2, fh - 2, size + 4, size + 4)); + paint->restore(); + } } }