diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2010-04-06 12:38:47 (GMT) |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2010-04-07 10:53:36 (GMT) |
commit | 7be934e98dd75d2c8902df4e88e2a1aceab9789f (patch) | |
tree | c2d291139282afe4adfb30223300c24790f11b8b | |
parent | 0102ee1de421a26a8bfd853146e485c3686baef6 (diff) | |
download | Qt-7be934e98dd75d2c8902df4e88e2a1aceab9789f.zip Qt-7be934e98dd75d2c8902df4e88e2a1aceab9789f.tar.gz Qt-7be934e98dd75d2c8902df4e88e2a1aceab9789f.tar.bz2 |
Fixes painting artifacts when scaling a QGraphicsProxyWidget.
Incorrect simple conversion of the exposed rect from QRectF to QRect
when rendering the widget.
Task-number: QTBUG-7296
Reviewed-by: bnilsen
-rw-r--r-- | src/gui/graphicsview/qgraphicsproxywidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/graphicsview/qgraphicsproxywidget.cpp b/src/gui/graphicsview/qgraphicsproxywidget.cpp index 483eb62..2132526 100644 --- a/src/gui/graphicsview/qgraphicsproxywidget.cpp +++ b/src/gui/graphicsview/qgraphicsproxywidget.cpp @@ -1435,7 +1435,7 @@ void QGraphicsProxyWidget::paint(QPainter *painter, const QStyleOptionGraphicsIt return; // Filter out repaints on the window frame. - const QRect exposedWidgetRect = (option->exposedRect & rect()).toRect(); + const QRect exposedWidgetRect = (option->exposedRect & rect()).toAlignedRect(); if (exposedWidgetRect.isEmpty()) return; |