]> git.sur5r.net Git - minitube/commitdiff
Clip item painting
authorFlavio Tordini <flavio.tordini@gmail.com>
Sun, 11 Oct 2009 20:50:56 +0000 (22:50 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Sun, 11 Oct 2009 20:50:56 +0000 (22:50 +0200)
src/playlist/PrettyItemDelegate.cpp

index 2c6f21f44ebcf25c8601bbb5fb4045f56bd688f1..1239b51ce45a3546eb02bbddf3e58ddf6f403100 100644 (file)
@@ -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;