From e8d4bdff59e9750a237b6be3856ceed2c9abe43b Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 20 Jul 2015 21:21:37 -0300 Subject: Try to fix paint issues on windows Davide complained about a flickr on windows, I think it has to do with the QPainter now knowing the right size of it's paint rect. this should fix it. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/modeldelegates.cpp') diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 3ded31779..6253be021 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -562,6 +562,7 @@ print_part: initStyleOption(&opt, index); opt.text = QString(); opt.icon = QIcon(); + painter->setClipRect(option.rect); qApp->style()->drawControl(QStyle::CE_ItemViewItem, &opt, painter, NULL); painter->save(); -- cgit v1.2.3-70-g09d2