From d5400c0c51964d911ecd40ef5bb39e5eec223d93 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 6 Apr 2013 12:57:16 +0100 Subject: [PATCH] UI Nits: Activity list cosmetic Drives me mad, but the separator line was over painted and it just looked amateurish. Been meaning to fix it for absolutely ages! --- src/RideNavigator.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RideNavigator.cpp b/src/RideNavigator.cpp index 7e243f58e..72a5a8bc7 100644 --- a/src/RideNavigator.cpp +++ b/src/RideNavigator.cpp @@ -984,10 +984,11 @@ void NavigatorCellDelegate::paint(QPainter *painter, const QStyleOptionViewItem // indent first column and draw all in bold myOption.rect.setHeight(rideNavigator->fontHeight + 2); //added myOption.font.setWeight(QFont::Bold); + QRect normal(myOption.rect.x(), myOption.rect.y()+1, myOption.rect.width(), myOption.rect.height()); if (myOption.rect.x() == 0) { - QRect indented(myOption.rect.x()+5, myOption.rect.y(), myOption.rect.width()-5, myOption.rect.height()); + QRect indented(myOption.rect.x()+5, myOption.rect.y()+1, myOption.rect.width()-5, myOption.rect.height()); drawDisplay(painter, myOption, indented, value); //added - } else drawDisplay(painter, myOption, myOption.rect, value); //added + } else drawDisplay(painter, myOption, normal, value); //added // now get the calendar text to appear ... if (calendarText != "") {