From: Philipp Spitzer Date: Wed, 13 Jul 2011 21:43:24 +0000 (+0000) Subject: This is just a quick-and-dirty workaround commit to aviod a drawing problem on maemo... X-Git-Tag: 0.5.1~2 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/4633b707573716023efda0043b82a3abf20110d1?hp=84c94b33f82e24ad10b4a2f91249f602ca016877 This is just a quick-and-dirty workaround commit to aviod a drawing problem on maemo. This commit might be reverted ... --- 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());