diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-08-11 13:37:22 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-08-11 14:02:09 (GMT) |
commit | 5c5310803f34c8fcf3aee6b7bb5c2bc6caf3107c (patch) | |
tree | f541f666ef3cec332c90a21355d3796411086ee3 /src/gui/painting | |
parent | 1a993b0836a3761752594597f5a614a784423254 (diff) | |
download | Qt-5c5310803f34c8fcf3aee6b7bb5c2bc6caf3107c.zip Qt-5c5310803f34c8fcf3aee6b7bb5c2bc6caf3107c.tar.gz Qt-5c5310803f34c8fcf3aee6b7bb5c2bc6caf3107c.tar.bz2 |
Prevent unnecessary repaints when moving with zero distance in moveRect().
This path is triggered from the layout system on S60. Reported by
Nokia/Dallas' multimedia team. We haven't yet figured out a way to
trigger this through auto test.
Reviewed-by: Paul
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qbackingstore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 40c9bf2..0b34c56 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -847,7 +847,7 @@ QWidgetBackingStore::~QWidgetBackingStore() void QWidgetPrivate::moveRect(const QRect &rect, int dx, int dy) { Q_Q(QWidget); - if (!q->isVisible()) + if (!q->isVisible() || (dx == 0 && dy == 0)) return; QWidget *tlw = q->window(); |