From 4633b707573716023efda0043b82a3abf20110d1 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Wed, 13 Jul 2011 21:43:24 +0000 Subject: [PATCH 1/1] This is just a quick-and-dirty workaround commit to aviod a drawing problem on maemo. This commit might be reverted ... --- src/mvc/delegate.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mvc/delegate.cpp b/src/mvc/delegate.cpp index a733b5e..1178a4f 100644 --- a/src/mvc/delegate.cpp +++ b/src/mvc/delegate.cpp @@ -111,8 +111,9 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons //painter->setBrush( bkgrColor ); painter->setBrush(itemGradient); - painter->setPen(borderPen); + painter->setPen(Qt::NoPen); painter->drawPath(endPath); + painter->setPen(borderPen); painter->setFont(option.font); } @@ -124,9 +125,11 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons painter->drawRect(option.rect); painter->setPen(borderPen); + /* // vertical lines painter->drawLine(option.rect.topLeft(), option.rect.bottomLeft()); painter->drawLine(option.rect.topRight(), option.rect.bottomRight()); + */ // horizontal lines painter->drawLine(option.rect.bottomLeft(), option.rect.bottomRight()); -- 2.30.2