diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-07-20 21:21:37 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-20 21:43:03 -0700 |
commit | e8d4bdff59e9750a237b6be3856ceed2c9abe43b (patch) | |
tree | c9d0870ed163da4a9baeee3b58543349254dd63c /qt-ui/modeldelegates.cpp | |
parent | ae03ece7fade3dd9249b2385493e79099f7f2b92 (diff) | |
download | subsurface-e8d4bdff59e9750a237b6be3856ceed2c9abe43b.tar.gz |
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 <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.cpp')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |