From 972e78fc95225f4d13bcedf0422264c9577c8d00 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Sun, 11 Oct 2009 22:50:56 +0200 Subject: [PATCH] Clip item painting --- src/playlist/PrettyItemDelegate.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5