From: Flavio Tordini Date: Sun, 11 Oct 2009 20:50:56 +0000 (+0200) Subject: Clip item painting X-Git-Tag: 0.7~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=972e78fc95225f4d13bcedf0422264c9577c8d00;p=minitube Clip item painting --- diff --git a/src/playlist/PrettyItemDelegate.cpp b/src/playlist/PrettyItemDelegate.cpp index 2c6f21f..1239b51 100644 --- a/src/playlist/PrettyItemDelegate.cpp +++ b/src/playlist/PrettyItemDelegate.cpp @@ -62,7 +62,9 @@ void PrettyItemDelegate::paintBody( QPainter* painter, painter->save(); painter->translate( option.rect.topLeft() ); + const QRectF line(0, 0, option.rect.width(), option.rect.height()); + painter->setClipRect(line); QPalette palette;